- Vite + plugin vite-plugin-mkcert
- React v18
- Typescript
- Auth0 :
<Auth0Provider>
+useAuth0()
hook
- Login / Logout buttons
- Get user custom metadata from Auth0 Management API (fetch API with access token from
getAccessTokenSilently()
) - Protected routes with react-router v6
- Works with browsers blocking 3rd party cookies (Safari, Brave) :
useRefhesTokens
props + refresh token rotation + automatic reuse detection + cache location -> localStorage
vite-plugin-mkcert enables HTTPS on localhost. With a localhost alias (app.dev
is set by default in vite.config.ts) consent can be skipped and getAccessTokenSilently()
doesn't throw a Consent required error.
Allowed callback URLs must not include localhost