mirror of
https://github.com/zitadel/zitadel.git
synced 2025-12-12 06:42:59 +00:00
cookie org
This commit is contained in:
@@ -6,7 +6,7 @@ export type SessionCookie = {
|
||||
id: string;
|
||||
token: string;
|
||||
loginName: string;
|
||||
organization: string;
|
||||
organization?: string;
|
||||
creationDate: string;
|
||||
expirationDate: string;
|
||||
changeDate: string;
|
||||
|
||||
@@ -93,14 +93,16 @@ export async function createSessionForUserIdAndUpdateCookie(
|
||||
expirationDate: (response.session.expirationDate ?? "")?.toString(),
|
||||
changeDate: response.session.changeDate?.toString() ?? "",
|
||||
loginName: response.session.factors.user.loginName ?? "",
|
||||
organization: response.session.factors.user.organizationId ?? "",
|
||||
};
|
||||
|
||||
if (authRequestId) {
|
||||
sessionCookie.authRequestId = authRequestId;
|
||||
}
|
||||
|
||||
if ()
|
||||
if (response.session.factors.user.organizationId) {
|
||||
sessionCookie.organization =
|
||||
response.session.factors.user.organizationId;
|
||||
}
|
||||
|
||||
return addSessionToCookie(sessionCookie).then(() => {
|
||||
return response.session as Session;
|
||||
|
||||
Reference in New Issue
Block a user