Facebook OAuth
Sign in with Facebook.
Server config
Add the optional peer dep:
Endpoint
| Method | Path | Body |
|---|---|---|
POST | /auth/login | { providerName: 'facebook', credentials: { token } } |
token is the Facebook accessToken from the JS SDK or your popup.
Client call
What the library does
- Calls Facebook's Graph API with the access token to fetch the user's profile.
- Looks up
nest_auth_identitiesforprovider='facebook'+ the Facebook user ID. - Creates or links the user, same as Google.