DEV Community

Robertino
Robertino

Posted on • Originally published at auth0.com

πŸš€ Introducing the Brand-New Auth0 Vue SDK

Learn about the essential features of the Auth0 Vue SDK and how it helps developers secure Vue 3 apps.


Today, we are announcing the release of the Auth0 Vue SDK, a new SDK that makes it easy to integrate Auth0 with any Vue 3 apps. This new SDK only supports Vue 3 apps. To secure Vue 2 (Vue.js) apps, developers can use the Auth0 SPA SDK instead.

Vue.js is a progressive JavaScript framework designed for building user interfaces using HTML, JavaScript, and CSS. It makes building apps for the modern web easy while providing developers with a lot of flexibility.

The Auth0 Developer Experience team designed the new Auth0 Vue SDK to follow idiomatic patterns that are familiar to Vue developers. The Vue SDK abstracts the features of the Auth0 SPA SDK into a Vue plugin that developers can consume in Vue 3 components either using the Options API or the new Composition API.

Starting today, Vue developers can:

Auth0 Vue SDK Features

This new Auth0 Vue SDK arrives at a great time as Evan You announced on February 7th, 2020, that Vue 3 is now the default version of Vue. As such, the Auth0 Vue SDK fully supports Vue 3 along with the Options API and the Composition API. The SDK also provides full TypeScript support.

Here’s a breakdown of the essential features that developers can enjoy when using the new Auth0 Vue SDK:

  • Quick implementation of login and logout functionality into Vue 3 apps using the Auth0 Universal Login page.
  • Easy access to profile information about the logged-in user.
  • Availability of access tokens to retrieve protected user data from an external API.
  • Simple mechanism to protect Vue 3 routes using a router guard from the SDK with the Vue Router.

Vue 2 Auth0 SDK Support

The new Auth0 Vue SDK only works with Vue 3. If you’re working on an app that uses Vue 2, you can use the Auth0 SPA SDK instead to implement authentication in your application.

To see the integration of Vue.js (Vue 2) with the Auth0 SPA SDK in action, take a look at the "Vue.js/JavaScript Authentication" code sample from the
Auth0 Developer Hub!

Read more...

Top comments (0)