Frontegg Provider
Resources
Setup
Callback URL
https://example.com/api/auth/callback/frontegg
Environment Variables
AUTH_FRONTEGG_ID
AUTH_FRONTEGG_SECRET
AUTH_FRONTEGG_ISSUER
Configuration
Follow these steps:
Log into the Frontegg portal
Add the required environment variables to your .env.local
file.
# Environments > Your environment > Env settings
AUTH_FRONTEGG_ID="<Client ID>"
# Environments > Your environment > Env settings
AUTH_FRONTEGG_SECRET="<API KEY>"
# Environments > Your environment > Env settings > Domains > Domain name
AUTH_FRONTEGG_ISSUER="<https://[YOUR_SUBDOMAIN].frontegg.com>"
/auth.ts
import NextAuth from "next-auth"
import Frontegg from "next-auth/providers/frontegg"
export const { handlers, auth, signIn, signOut } = NextAuth({
providers: [Frontegg],
})