Frontegg Provider
리소스
설정
콜백 URL
https://example.com/api/auth/callback/frontegg
환경 변수
AUTH_FRONTEGG_ID
AUTH_FRONTEGG_SECRET
AUTH_FRONTEGG_ISSUER
설정
다음 단계를 따라 진행하세요.
- Frontegg 포털에 로그인합니다.
.env.local
파일에 필요한 환경 변수를 추가합니다.
# 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],
})