https://github.com/kunukn/vue-3-auth0
Playground for Vue 3 + Auth0
https://github.com/kunukn/vue-3-auth0
Last synced: about 2 months ago
JSON representation
Playground for Vue 3 + Auth0
- Host: GitHub
- URL: https://github.com/kunukn/vue-3-auth0
- Owner: kunukn
- License: mit
- Created: 2024-04-16T11:14:26.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-04-25T14:22:02.000Z (about 1 year ago)
- Last Synced: 2025-01-31T07:31:10.255Z (4 months ago)
- Language: Vue
- Size: 840 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# vue-3-auth0
Playground for Vue 3 + Auth0
`@auth0/auth0-vue` is used.
# Getting started
Vue 3 Auth0 demo app.

## Demo
Urlvue-3-auth0/login
[email protected]
PasswordH3lloworld!## Auth flow in this demo.
Authorize Code with PKCE.
## Prerequisite
- 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.## Install steps:
```bash
# Ensure you have mkcert installed to use https in localhost. https://github.com/FiloSottile/mkcertnpm 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.
# Auth setup
https://auth0.com/
Login or create an account.






## Thoughts
You can use `'@auth0/auth0-spa-js'` and create a Vue wrapper if `@auth0/auth0-vue` is lacking req. features.