REST API

All endpoints that NextAuth.js supports are also supported by nuxt-auth:

EndpointRequest
${basePath}/signinGET
${basePath}/signin/:providerPOST
${basePath}/callback/:providerGET POST
${basePath}/signoutGET POST
${basePath}/sessionGET
${basePath}/csrfGET
${basePath}/providersGET

The basePath is /api/auth per default and can be configured in the nuxt.config.ts.

You can directly interact with these API endpoints if you wish to, it's probably a better idea to use useAuth where possible though. See the full rest API documentation of NextAuth.js here.

Prior to v0.5.0 useAuth() was called useSession().