This code sample demonstrates how to implement authentication in a Vue 3 Single-Page Application (SPA).
Install the project dependencies:
npm install
Create a .env
file under the root project directory with the following content:
VUE_APP_AUTH0_DOMAIN=
VUE_APP_AUTH0_CLIENT_ID=
VUE_APP_AUTH0_AUDIENCE=https://hello-world.example.com
VUE_APP_AUTH0_CALLBACK_URL=http://localhost:4040/callback
VUE_APP_API_SERVER_URL=http://localhost:6060
Run the application:
npm run serve
Visit http://localhost:4040/
to access the starter application.