This page is only relevant to you, if you are using the
authjs
-provider.REST API
All endpoints that NextAuth.js supports are also supported by nuxt-auth
:
Endpoint | Request |
---|---|
${basePath}/signin | GET |
${basePath}/signin/:provider | POST |
${basePath}/callback/:provider | GET POST |
${basePath}/signout | GET POST |
${basePath}/session | GET |
${basePath}/csrf | GET |
${basePath}/providers | GET |
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.