mirror of
https://github.com/dadosfera/maestro.git
synced 2026-10-05 01:09:08 +00:00
Merge pull request #376 from dadosfera/feature/auth-cookie
UPDATE: cookie path
This commit is contained in:
@@ -573,7 +573,7 @@ export class AuthController {
|
||||
|
||||
this.logger.info('Set Cookie ddf-auth')
|
||||
res.cookie('ddf-auth', data.accessToken, {
|
||||
domain: 'dadosfera.ai',
|
||||
domain: '.dadosfera.ai',
|
||||
maxAge: exp,
|
||||
httpOnly: true,
|
||||
secure: true,
|
||||
@@ -584,7 +584,7 @@ export class AuthController {
|
||||
if (data.refreshToken) {
|
||||
this.logger.info('Set Cookie ddf-refresh-auth')
|
||||
res.cookie('ddf-refresh-auth', data.refreshToken, {
|
||||
domain: 'dadosfera.ai',
|
||||
domain: '.dadosfera.ai',
|
||||
maxAge: exp,
|
||||
httpOnly: true,
|
||||
secure: true,
|
||||
@@ -595,7 +595,7 @@ export class AuthController {
|
||||
if (data.userId) {
|
||||
this.logger.info('Set Cookie ddf-refresh-auth')
|
||||
res.cookie('ddf-user-id', data.userId, {
|
||||
domain: 'dadosfera.ai',
|
||||
domain: '.dadosfera.ai',
|
||||
maxAge: exp,
|
||||
httpOnly: true,
|
||||
secure: true,
|
||||
|
||||
Reference in New Issue
Block a user