(@Body() body: { email?: string; password?: string }, @Res({ passthrough: true }) res: Response)
| 49 | @Post("login") |
| 50 | @HttpCode(200) |
| 51 | login(@Body() body: { email?: string; password?: string }, @Res({ passthrough: true }) res: Response) { |
| 52 | const r = this.auth.login(body?.email, body?.password); |
| 53 | this.setRefreshCookie(res, r.refreshToken); |
| 54 | return { user: r.user, accessToken: r.accessToken, refreshToken: r.refreshToken }; |
| 55 | } |
| 56 | |
| 57 | @Public() |
| 58 | @Post("refresh") |
nothing calls this directly
no test coverage detected