The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
chore(auth): drop unused workspacePersonalInviteToken from SSO state (#20557)
Félix Malfait34d9fcaba1d8
diff --git a/packages/twenty-server/src/engine/core-modules/auth/strategies/google.auth.strategy.ts b/packages/twenty-server/src/engine/core-modules/auth/strategies/google.auth.strategy.tsindex 890df81377a..7fb5cda439f 100644--- a/packages/twenty-server/src/engine/core-modules/auth/strategies/google.auth.strategy.ts+++ b/packages/twenty-server/src/engine/core-modules/auth/strategies/google.auth.strategy.ts@@ -29,7 +29,6 @@ export type GoogleRequest = Omit<picture: string | null;locale?: keyof typeof APP_LOCALES | null;workspaceInviteHash?: string;- workspacePersonalInviteToken?: string;action: SocialSSOSignInUpActionType;workspaceId?: string;billingCheckoutSessionState?: string;@@ -57,7 +56,6 @@ export class GoogleStrategy extends PassportStrategy(Strategy, 'google') {workspaceInviteHash: req.query.workspaceInviteHash,workspaceId: req.params.workspaceId,billingCheckoutSessionState: req.query.billingCheckoutSessionState,- workspacePersonalInviteToken: req.query.workspacePersonalInviteToken,action: req.query.action,locale: req.query.locale,returnToPath: req.query.returnToPath,@@ -94,7 +92,6 @@ export class GoogleStrategy extends PassportStrategy(Strategy, 'google') {lastName: name?.familyName,picture: photos?.[0]?.value ?? null,workspaceInviteHash: state?.workspaceInviteHash,- workspacePersonalInviteToken: state?.workspacePersonalInviteToken,workspaceId: state?.workspaceId,billingCheckoutSessionState: state?.billingCheckoutSessionState,action: state?.action ?? 'list-available-workspaces',diff --git a/packages/twenty-server/src/engine/core-modules/auth/strategies/microsoft.auth.strategy.ts b/packages/twenty-server/src/engine/core-modules/auth/strategies/microsoft.auth.strategy.tsindex a32f5fb5cc9..e11a6c3da7c 100644--- a/packages/twenty-server/src/engine/core-modules/auth/strategies/microsoft.auth.strategy.ts+++ b/packages/twenty-server/src/engine/core-modules/auth/strategies/microsoft.auth.strategy.ts@@ -27,7 +27,6 @@ export type MicrosoftRequest = Omit<picture: string | null;locale?: keyof typeof APP_LOCALES | null;workspaceInviteHash?: string;- workspacePersonalInviteToken?: string;workspaceId?: string;billingCheckoutSessionState?: string;action: SocialSSOSignInUpActionType;@@ -57,7 +56,6 @@ export class MicrosoftStrategy extends PassportStrategy(Strategy, 'microsoft') {workspaceId: req.params.workspaceId,locale: req.query.locale,billingCheckoutSessionState: req.query.billingCheckoutSessionState,- workspacePersonalInviteToken: req.query.workspacePersonalInviteToken,action: req.query.action,returnToPath: req.query.returnToPath,oauthRetryCount: req.query.oauthRetryCount@@ -92,7 +90,6 @@ export class MicrosoftStrategy extends PassportStrategy(Strategy, 'microsoft') {lastName: name?.familyName,picture: photos?.[0]?.value ?? null,workspaceInviteHash: state?.workspaceInviteHash,- workspacePersonalInviteToken: state?.workspacePersonalInviteToken,workspaceId: state?.workspaceId,billingCheckoutSessionState: state?.billingCheckoutSessionState,locale: state?.locale,diff --git a/packages/twenty-server/src/engine/core-modules/auth/types/social-sso-state.type.ts b/packages/twenty-server/src/engine/core-modules/auth/types/social-sso-state.type.tsindex 0ba9bef42f1..af96fc760c9 100644--- a/packages/twenty-server/src/engine/core-modules/auth/types/social-sso-state.type.ts+++ b/packages/twenty-server/src/engine/core-modules/auth/types/social-sso-state.type.ts@@ -6,7 +6,6 @@ export type SocialSSOState = {workspaceInviteHash?: string;workspaceId?: string;billingCheckoutSessionState?: string;- workspacePersonalInviteToken?: string;action?: SocialSSOSignInUpActionType;locale?: keyof typeof APP_LOCALES;returnToPath?: string;