Authentication for Nuxt
"Nuxt OIDC Auth is a Nuxt module focusing on native OIDC (OpenID Connect) based authentication for Nuxt with a high level of customizability and security for SSR applications."
- ↩️ Automatic session and token renewal
- 💾 Encrypted server side refresh/access token storage powered by Nitro storage
- 🔑 Token validation
- 🔒 Secured & sealed cookies sessions
- ⚙️ Presets for popular OIDC providers
- 📤 Global middleware with automatic redirection to default provider or a custom login page (see playground)
- 👤
useOidcAuthcomposable for getting the user information, logging in and out, refetching the current session and triggering a token refresh- 🗂️ Multi provider support with auto registered routes (
/auth/<provider>/login,/auth/<provider>/logout,/auth/<provider>/callback)- 📝 Generic spec OpenID compatible connect provider with fully configurable OIDC flow (state, nonce, PKCE, token request, ...)
- 🕙 Session expiration check
Jan-Henrik Damaschke
@jandamaschke