@nauth-toolkit/social-facebook
v0.2.6
Published
Facebook Login provider for nauth-toolkit
Maintainers
Readme
@nauth-toolkit/social-facebook
Facebook Login provider for nauth-toolkit.
Adds Facebook Login with web redirect flows. Handles OAuth authorization, access token exchange, and user profile retrieval. Automatically links Facebook accounts to existing users by email.
Part of nauth-toolkit. Requires
@nauth-toolkit/core.
Install
npm install @nauth-toolkit/social-facebookEnable in your auth config:
const authConfig = {
social: {
facebook: {
enabled: true,
appId: process.env.FACEBOOK_APP_ID,
appSecret: process.env.FACEBOOK_APP_SECRET,
},
},
};NestJS — import the module and it auto-registers:
import { FacebookSocialAuthModule } from '@nauth-toolkit/social-facebook/nestjs';
@Module({
imports: [NAuthModule.forRoot(authConfig), FacebookSocialAuthModule],
})
export class AuthModule {}Related packages
| Package | Purpose |
| --- | --- |
| @nauth-toolkit/social-google | Google OAuth 2.0 |
| @nauth-toolkit/social-apple | Sign in with Apple |
See the full package list in the core README.
Free to use. See license.
