Auth Update

This commit is contained in:
Rokojori 2026-07-17 21:39:37 +02:00
parent eb275c9669
commit 858e70f7bb
2 changed files with 1 additions and 3 deletions

View File

@ -106,8 +106,6 @@ export class RJLog
}
let ti
return color + " " + result[ 1 ] + "(" + result[ 2 ] + ") " + RJLog.getDateInfo() + RJLog.resetColor;
}

View File

@ -58,7 +58,7 @@ function cookieOptions( maxAge: number )
function setTokenCookie( res: Response, accessToken: string ): void
{
res.cookie( 'accessToken', accessToken, { ...cookieOptions( ACCESS_TOKEN_TTL_MS ), maxAge: ACCESS_TOKEN_TTL_MS } );
res.cookie( 'accessToken', accessToken, { ...cookieOptions( REFRESH_TOKEN_TTL_MS ), maxAge: REFRESH_TOKEN_TTL_MS } );
}
function setRefreshTokenCookie( res: Response, token: string ): void