This code sample demonstrates how to implement authentication in a Svelte Single-Page Application (SPA).
Install the project dependencies:
npm install
Create a .env
file under the root project directory with the following content:
AUTH0_DOMAIN=
AUTH0_CLIENT_ID=
AUTH0_AUDIENCE=https://hello-world.example.com
API_SERVER_URL=http://localhost:6060
Run the application:
npm run dev
Visit http://localhost:4040/
to access the starter application.