π Nuxt user authentication and sessions via NextAuth.js. nuxt-auth wraps NextAuth.js to offer the reliability & convenience of a 12k star library to the nuxt 3 ecosystem with a native developer experience (DX)

nuxt-authis a feature-packed, open-source authentication module for Nuxt 3 applications.
npm i -D @sidebase/nuxt-auth
Then visit the Quick Start documentation to setup the module.
nuxt-auth wraps NextAuth.js to offer the reliability & convenience of a 12k star library to the nuxt 3 ecosystem with a native developer experience (DX). Features of nuxt-auth include:
useSession supports:
getSession, getCsrfToken, getProviders, signIn, signOutstatus, data, lastRefreshedAtGET /signin,POST /signin/:provider,GET/POST /callback/:provider,GET /signout,POST /signout,GET /session,GET /csrf,GET /providersVisit the nuxt-auth demo page here:

You can find the demo source-code here.
npm run dev:prepare to generate type stubs.npm run dev to start the module playground in development mode.npm run lint to run eslintnpm run types to run typescheck via tscnpm publish --access public to publish (bump version before)This module also has itβs own playground:
> git clone https://github.com/sidebase/nuxt-auth
> cd nuxt-auth
# **OPEN THE `~/playground/server/api/auth/[...].ts` and configure your own auth-provider
> npm i
> npm run dev:prepare
> npm run dev
# -> open http://localhost:3000