Supersaas templates use Nuxt Auth Utils to provide a collection of authentication utilities that you can use in your site. It pairs well with Nuxt 3 and provides a sane and easy-to-use authentication system.
Auth with Sealed Cookies and Session.
To use the authentication system in your site, you need to set the respective providers in your nuxt.config.ts
file and their credentials in the .env file.
export default defineNuxtConfig({
runtimeConfig: {
oauth: {
<provider>: {
clientId: process.env.NUXT_OAUTH_<PROVIDER>_CLIENT_ID,
clientSecret: process.env.NUXT_OAUTH_<PROVIDER>_CLIENT_SECRET,
}
}
}
})
You can find detailed documentation here