Resources
Section titled “Resources”Environment variables
Section titled “Environment variables”FACEBOOK_CLIENT_ID=FACEBOOK_CLIENT_SECRET=
Callback URL
Section titled “Callback URL”Add the callback URL in your Facebook App under “Facebook Login” → “Settings” → “Valid OAuth Redirect URIs”. Localhost URLs are automatically allowed.
/api/auth/facebook/callback
Config
Section titled “Config”The email
and public_profile
scopes are requested by default.
import process from 'node:process'import { createAuth } from '@rttnd/gau/core'import { Facebook } from '@rttnd/gau/oauth'
export const auth = createAuth({ providers: [ Facebook({ clientId: process.env.FACEBOOK_CLIENT_ID, clientSecret: process.env.FACEBOOK_CLIENT_SECRET, }), ],})
Provider params
Section titled “Provider params”params
Section titled “params”Type:
Record<string, string>
Default: —
Extra query params appended to the authorization URL.