(res: Response, token: string)
| 27 | ) {} |
| 28 | |
| 29 | private setRefreshCookie(res: Response, token: string) { |
| 30 | res.cookie(COOKIE, token, { |
| 31 | httpOnly: true, |
| 32 | secure: this.cfg.cookieSecure, |
| 33 | sameSite: "lax", |
| 34 | maxAge: this.cfg.refreshTtlSec * 1000, |
| 35 | path: COOKIE_PATH, |
| 36 | }); |
| 37 | } |
| 38 | |
| 39 | @Public() |
| 40 | @Post("register") |