http://localhost:3000
.http://localhost:3000
.http://localhost:3000
.domain
: The domain of your Auth0 tenant. This value is in the Auth0 Dashboard under your
Application’s Settings in the Domain field. If you are using a custom domain, set this to the value of your custom domain instead.clientId
: The ID of the Auth0 Application you set up earlier in this quickstart. Find this in
the Auth0 Dashboard under your Application’s Settings in the Client ID field.authorizationParams.redirect_uri
: The URL in your application that you would like Auth0 to
redirect users to after they have authenticated. This corresponds to the callback URL you set up earlier in
this quickstart. This value is in the Auth0 Dashboard under your Application’s Settings in the Callback URLs
field. Make sure what you enter in your code matches what you set up earlier or your users will see an error.provide
and app.config.globalProperties
.
This enables both the Composition API and Options
API.loginWithRedirect
function
exposed on the return value of useAuth0
, which you can access in your component’s setup function. It
will redirect users to the Auth0 Universal Login page. and, after a user authenticates, redirect then back to the
callback URL you set up earlier in this quickstart.loginWithRedirect
method from the global
$auth0
property through the this
accessor.authorizationParams.redirect_uri
you used to configure the plugin.logoutParams.returnTo
parameter.Use the logout
function exposed on the return value of useAuth0
, which you can access
in your component’s setup
function, to log the user out of your application.logout
method from the global $auth0
property through the this
accessor.logoutParams.returnTo
addressuser
property. To
access this property, review your component’s setup
function and find the userAuth0
return value.The user
property contains sensitive information related to the user’s identity. It is only
available based on the user’s authentication status. To prevent render errors, you should always:isAuthenticated
property to determine whether Auth0 has authenticated the user before
Vue renders any component that consumes the user
property.isLoading
is false before accessing
the isAuthenticated
property.user
, isLoading
, and
isAuthenticated
properties from the global $auth0
property through the this
accessor.user
or any of the user properties within a component correctly
after you have logged in