Add session membership

Signed-off-by: Bryan Frimin <bryan@getprobo.com>
This commit is contained in:
Bryan Frimin
2025-12-19 15:49:19 +01:00
parent 7013612a43
commit 342d93911b
3 changed files with 13 additions and 5 deletions

View File

@@ -399,7 +399,10 @@ func (s SessionService) AssumeOrganizationSession(
ID: gid.New(tenantID, coredata.SessionEntityType),
UserID: rootSession.UserID,
TenantID: &tenantID,
MembershipID: &membership.ID,
ParentSessionID: &rootSession.ID,
AuthMethod: rootSession.AuthMethod,
AuthenticatedAt: rootSession.AuthenticatedAt,
ExpiredAt: rootSession.ExpiredAt,
CreatedAt: now,
UpdatedAt: now,