Skip to content

Commit 9751adc

Browse files
committed
fix:modified the client login credential mathod response
Signed-off-by: shitrerohit <[email protected]>
1 parent 48ab913 commit 9751adc

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.env.sample

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,7 @@ HOSTNAME='localhost' # Hostname or unique identifier
180180
# SSO
181181
# To add more clients, simply add comma separated values of client names
182182
SUPPORTED_SSO_CLIENTS=CREDEBL
183+
NEXTAUTH_PROTOCOL=
183184

184185
# Key for agent base wallet
185186
AGENT_API_KEY='supersecret-that-too-16chars'

apps/api-gateway/src/organization/organization.controller.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -558,8 +558,8 @@ export class OrganizationController {
558558
};
559559
res.cookie('session_id', orgCredentials.sessionId, {
560560
httpOnly: true,
561-
sameSite: 'lax',
562-
secure: false
561+
sameSite: 'none',
562+
secure: 'http' !== process.env.NEXTAUTH_PROTOCOL
563563
});
564564

565565
return res.status(HttpStatus.OK).json(finalResponse);

0 commit comments

Comments
 (0)