Skip to content

Commit 38498ce

Browse files
committed
message changes for validateAndRegister
1 parent 18e3f58 commit 38498ce

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

src/auth/auth.controller.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,14 +52,14 @@ export class AuthController {
5252
@Post('/validateAndRegister')
5353
@UseGuards(JwtAuthGuard)
5454
@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(
5959
@Req() request: Request,
6060
@Res() response: Response
6161
) {
62-
return this.authService.signUpAndSignIn(request, response);
62+
return this.authService.validateAndRegister(request, response);
6363
}
6464

6565
@UseFilters(new AllExceptionsFilter(APIID.USER_AUTH))

src/auth/auth.service.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export class AuthService {
3030
private userRepository: Repository<User>,
3131
) { }
3232

33-
async signUpAndSignIn(request :Request,response: Response) {
33+
async validateAndRegister(request :Request,response: Response) {
3434
const decoded :any = jwt_decode(request.headers.authorization);
3535
const userCreateDto = new UserCreateDto({
3636
userId: decoded.sub,
@@ -52,9 +52,9 @@ export class AuthService {
5252
return APIResponse.success(
5353
response,
5454
APIID.GOOGLE_SIGNIN,
55-
'User signed in successfully',
55+
'User validated successfully',
5656
HttpStatus.OK,
57-
'User signed in successfully'
57+
'User validated successfully'
5858
);
5959
}
6060
else {
@@ -64,7 +64,7 @@ export class AuthService {
6464
APIID.GOOGLE_SIGNUP,
6565
createUserDB,
6666
HttpStatus.CREATED,
67-
'User Signed Up successfully'
67+
'User Registered successfully'
6868
);
6969
}
7070

0 commit comments

Comments
 (0)