feat: google sso auth added

This commit is contained in:
Balu Babu
2023-01-13 00:52:29 +05:30
parent 6f4c5d7195
commit f4df8873be
8 changed files with 181 additions and 54 deletions

View File

@@ -8,6 +8,7 @@ import { PassportModule } from '@nestjs/passport';
import { JwtModule } from '@nestjs/jwt/dist';
import { JwtStrategy } from './strategies/jwt.strategy';
import { RTJwtStrategy } from './strategies/rt-jwt.strategy';
import { GoogleStrategy } from './strategies/google.strategy';
@Module({
imports: [
@@ -19,7 +20,7 @@ import { RTJwtStrategy } from './strategies/rt-jwt.strategy';
secret: process.env.JWT_SECRET,
}),
],
providers: [AuthService, JwtStrategy, RTJwtStrategy],
providers: [AuthService, JwtStrategy, RTJwtStrategy, GoogleStrategy],
controllers: [AuthController],
})
export class AuthModule {}