Simple example of using sapper with auth0 as the authentication service.
npx degit "adamaho/sapper-auth0" my-app
npm install
- Configure a
.env
file in the root of your project with the following:
AUTH0_CLIENT_ID=your_client_id
AUTH0_DOMAIN=your_auth0_domain
AUTH0_CLIENT_SECRET=your_auth0_client_secret
npm run dev
- Navigate to
/app
to be redirected to login prompt - Login/Signup
- Redirect back to
/app
- To logout: navigate to
/auth/logout