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