File tree Expand file tree Collapse file tree 2 files changed +9
-9
lines changed Expand file tree Collapse file tree 2 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -52,14 +52,14 @@ export class AuthController {
52
52
@Post ( '/validateAndRegister' )
53
53
@UseGuards ( JwtAuthGuard )
54
54
@ApiBasicAuth ( "access-token" )
55
- @ApiOperation ( { summary : 'Signup or Signin with Google' } )
56
- @ApiResponse ( { status : 200 , description : 'User signed in successfully' } )
57
- @ApiResponse ( { status : 201 , description : 'User signed up successfully' } )
58
- async signUpAndSignIn (
55
+ @ApiOperation ( { summary : 'validate And Register with Google' } )
56
+ @ApiResponse ( { status : 200 , description : 'User Validated successfully' } )
57
+ @ApiResponse ( { status : 201 , description : 'User Registered successfully' } )
58
+ async validateAndRegister (
59
59
@Req ( ) request : Request ,
60
60
@Res ( ) response : Response
61
61
) {
62
- return this . authService . signUpAndSignIn ( request , response ) ;
62
+ return this . authService . validateAndRegister ( request , response ) ;
63
63
}
64
64
65
65
@UseFilters ( new AllExceptionsFilter ( APIID . USER_AUTH ) )
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ export class AuthService {
30
30
private userRepository : Repository < User > ,
31
31
) { }
32
32
33
- async signUpAndSignIn ( request :Request , response : Response ) {
33
+ async validateAndRegister ( request :Request , response : Response ) {
34
34
const decoded :any = jwt_decode ( request . headers . authorization ) ;
35
35
const userCreateDto = new UserCreateDto ( {
36
36
userId : decoded . sub ,
@@ -52,9 +52,9 @@ export class AuthService {
52
52
return APIResponse . success (
53
53
response ,
54
54
APIID . GOOGLE_SIGNIN ,
55
- 'User signed in successfully' ,
55
+ 'User validated successfully' ,
56
56
HttpStatus . OK ,
57
- 'User signed in successfully'
57
+ 'User validated successfully'
58
58
) ;
59
59
}
60
60
else {
@@ -64,7 +64,7 @@ export class AuthService {
64
64
APIID . GOOGLE_SIGNUP ,
65
65
createUserDB ,
66
66
HttpStatus . CREATED ,
67
- 'User Signed Up successfully'
67
+ 'User Registered successfully'
68
68
) ;
69
69
}
70
70
You can’t perform that action at this time.
0 commit comments