Overview of NuxtAuth features
mainNuxtAuth is a Nuxt 3+ module that provides authentication by integrating directly into the Nuxt ecosystem. It allows you to access user sessions within pages, components, and composables.
Key capabilities include:
Authentication Providers
- OAuth: Support for providers like GitHub, Google, Twitter, Azure, etc.
- Custom OAuth: Ability to add your own OAuth providers.
- Credentials: Username/email and password authentication.
- Email Magic URLs: Passwordless authentication via email.
Application Side Session Management
- Session fetching with
status,data, andlastRefreshedAt. - Built-in methods for
getSession,getCsrfToken,getProviders,signIn, andsignOut. - Full TypeScript support.
Application Protection
- Client-side: Middleware protection for the entire application or specific routes.
- Server-side: Middleware and endpoint protection.