Playground for Vue 3 + Auth0
@auth0/auth0-vue
is used.
Vue 3 Auth0 demo app.
Url | vue-3-auth0/login |
Username | hello@world.com |
Password | H3lloworld! |
Authorize Code with PKCE.
- You need to have an Auth0 app with Universal login experience.
- The
.env
must be updated with values from the Auth0 settings. - Ensure your backend is running if API fetch is wanted.
# Ensure you have mkcert installed to use https in localhost. https://github.com/FiloSottile/mkcert
npm install
npm run create-env # creates a boilerplate .env file
# Update the .env file with your Auth0 config data.
npm run install-mkcert # Done with your normal OS account. Done once per OS, skip if has been done for your OS.
# Works with Bash shell
npm run create-cert-files-in-folder # Creates the localhost certificates.
# Ensure your backend is running if API fetch is wanted.
npm start # Starts the app using https. Done with your normal OS account.
If you want to play with the API, then the backend-service
needs to be started.
Login or create an account.
You can use '@auth0/auth0-spa-js'
and create a Vue wrapper if @auth0/auth0-vue
is lacking req. features.