Skip to content

Commit 4ae16bc

Browse files
shl0501shl0501
andauthored
fix(be): fix login error (#45)
fix: fix login error Co-authored-by: shl0501 <[email protected]>
1 parent 963bf8d commit 4ae16bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/server/src/auth/auth.controller.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export class AuthController {
3737
async token(@Req() request: Request) {
3838
const refreshToken = request.cookies[this.REFRESH_TOKEN];
3939
const accessToken = await this.authService.generateAccessToken(refreshToken);
40-
const userId = this.authService.getInfo(refreshToken);
40+
const userId = await this.authService.getInfo(refreshToken);
4141
return { accessToken, userId };
4242
}
4343

0 commit comments

Comments
 (0)