https://github.com/kunukn/nuxt-3-auth0
https://github.com/kunukn/nuxt-3-auth0
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/kunukn/nuxt-3-auth0
- Owner: kunukn
- License: mit
- Created: 2024-04-20T13:15:55.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-04-25T09:33:24.000Z (about 1 year ago)
- Last Synced: 2025-01-31T07:31:10.304Z (4 months ago)
- Language: Vue
- Size: 1.08 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# nuxt-3-auth0
Playground for Nuxt 3 + Auth0
`@auth0/auth0-vue` library is used.
# Getting started
Nuxt 3 Auth0 demo app.

## Demo
Urlnuxt-3-auth0/login
[email protected]
PasswordH3lloworld!## Auth flow in this demo.
Authorize Code with PKCE.
## Prerequisite
- You need to have an Auth0 account with Auth0 apps.
- The `.env` must be updated with values from the Auth0 settings.
- The backend API must be running if API demo 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.
```# 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.