File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,8 @@ import { PermissionRepository } from '@repos/permission.repository';
2626import { AuthenticateGuard } from '@middleware/authenticate.guard' ;
2727import { AdminGuard } from '@middleware/admin.guard' ;
2828import { AdminRoleService } from '@services/admin-role.service' ;
29+ import { OAuthService } from '@services/oauth.service' ;
30+ import passport from 'passport' ;
2931
3032@Module ( {
3133 imports : [
@@ -54,6 +56,7 @@ import { AdminRoleService } from '@services/admin-role.service';
5456 AuthenticateGuard ,
5557 AdminGuard ,
5658 AdminRoleService ,
59+ OAuthService ,
5760 ] ,
5861 exports : [
5962 AuthService ,
@@ -72,7 +75,7 @@ import { AdminRoleService } from '@services/admin-role.service';
7275export class AuthKitModule implements NestModule {
7376 configure ( consumer : MiddlewareConsumer ) {
7477 consumer
75- . apply ( cookieParser ( ) )
78+ . apply ( cookieParser ( ) , passport . initialize ( ) )
7679 . forRoutes ( { path : '*' , method : RequestMethod . ALL } ) ;
7780 }
7881}
You can’t perform that action at this time.
0 commit comments