Creator
Authentication

Authentication Overview

How authentication works in Creator using Auth.js.

Authentication is a core part of any SaaS application. Creator uses Auth.js (NextAuth v5) to handle authentication and provides all the necessary UI for the authentication flow.

Auth.js is a mature, battle-tested authentication solution with JWT sessions. The starter kit comes with pre-configured providers, helper methods, and route protection.

Providers

  • Credentials — Email and password with OTP email verification
  • Google OAuth — Sign in with Google
  • GitHub OAuth — Sign in with GitHub

Environment variables

AUTH_SECRET=""           # Random secret for JWT signing
AUTH_URL=""              # Your app URL (e.g. http://localhost:3000)

# Google OAuth (optional)
NEXT_PUBLIC_AUTH_GOOGLE="true"
AUTH_GOOGLE_ID=""
AUTH_GOOGLE_SECRET=""

# GitHub OAuth (optional)
NEXT_PUBLIC_AUTH_GITHUB="true"
AUTH_GITHUB_ID=""
AUTH_GITHUB_SECRET=""

Set NEXT_PUBLIC_AUTH_GOOGLE or NEXT_PUBLIC_AUTH_GITHUB to "true" to show the corresponding button on the login page.

On this page

We use cookies to ensure you get the best experience on our website. For more information on how we use cookies, please see our cookie policy.