Installation
Last updated
Was this helpful?
Last updated
Was this helpful?
Before starting be aware that oidc-spa is not suited for Next.js.
If you are using Next the closer alternative is to use NextAuth.js (with the Keycloak adapter if you are using Keycloak). See this guide.
If you're having issues don't hesitate to reach out on Discord!
This is optional but recommended for better performances and security.
First rename your entry point file from main.tsx
(or main.ts
) to main.lazy.tsx
The create a new main.tsx
file: