mirror of
https://github.com/docmost/docmost.git
synced 2026-05-20 00:14:10 +08:00
WIP
This commit is contained in:
@@ -212,6 +212,7 @@ export class AuthController {
|
||||
setAuthCookie(res: FastifyReply, token: string) {
|
||||
res.setCookie('authToken', token, {
|
||||
httpOnly: true,
|
||||
sameSite: 'lax',
|
||||
path: '/',
|
||||
expires: this.environmentService.getCookieExpiresIn(),
|
||||
secure: this.environmentService.isHttps(),
|
||||
|
||||
Reference in New Issue
Block a user