(@Req() req: Request, @Body() body: { refreshToken?: string }, @Res({ passthrough: true }) res: Response)
| 58 | @Post("refresh") |
| 59 | @HttpCode(200) |
| 60 | refresh(@Req() req: Request, @Body() body: { refreshToken?: string }, @Res({ passthrough: true }) res: Response) { |
| 61 | const rt = body?.refreshToken ?? readCookie(req, COOKIE); |
| 62 | const r = this.auth.refresh(rt); |
| 63 | this.setRefreshCookie(res, r.refreshToken); |
| 64 | return { accessToken: r.accessToken, refreshToken: r.refreshToken }; |
| 65 | } |
| 66 | |
| 67 | @Public() |
| 68 | @Post("logout") |
nothing calls this directly
no test coverage detected