Overview
Learn how to authenticate users using the starter kit.
Nuxt Starter Kit uses nuxt-auth-utils to provide a simple and consistent API for user authentication. This authentication code is located in the layers/auth
directory and is responsible for managing the authentication process, including login, logout, and session management.
Supported Authentication Methods
- Email and password
- Social login (Google & GitHub)
Environment variables
NUXT_SESSION_PASSWORD=GuWL4ThqEw8Mx5RH2vN4TmGh8fx7MUT5Y
# GitHub Social Login
NUXT_OAUTH_GITHUB_CLIENT_ID=
NUXT_OAUTH_GITHUB_CLIENT_SECRET=
# Google Social Login
NUXT_OAUTH_GOOGLE_CLIENT_ID=
NUXT_OAUTH_GOOGLE_CLIENT_SECRET=