Skip to content

Commit

Permalink
fix(be): fix login error (#45)
Browse files Browse the repository at this point in the history
fix: fix login error

Co-authored-by: shl0501 <[email protected]>
  • Loading branch information
shl0501 and shl0501 authored Jan 23, 2025
1 parent 963bf8d commit 4ae16bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/server/src/auth/auth.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export class AuthController {
async token(@Req() request: Request) {
const refreshToken = request.cookies[this.REFRESH_TOKEN];
const accessToken = await this.authService.generateAccessToken(refreshToken);
const userId = this.authService.getInfo(refreshToken);
const userId = await this.authService.getInfo(refreshToken);
return { accessToken, userId };
}

Expand Down

0 comments on commit 4ae16bc

Please sign in to comment.