(@Body() body: { email?: string; password?: string }, @Res({ passthrough: true }) res: Response)
| 40 | @Post("register") |
| 41 | @HttpCode(200) |
| 42 | register(@Body() body: { email?: string; password?: string }, @Res({ passthrough: true }) res: Response) { |
| 43 | const r = this.auth.register(body?.email, body?.password); |
| 44 | this.setRefreshCookie(res, r.refreshToken); |
| 45 | return { user: r.user, accessToken: r.accessToken, refreshToken: r.refreshToken }; |
| 46 | } |
| 47 | |
| 48 | @Public() |
| 49 | @Post("login") |
nothing calls this directly
no test coverage detected