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.ts index 890df81377..7fb5cda439 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.ts index a32f5fb5cc..e11a6c3da7 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.ts index 0ba9bef42f..af96fc760c 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;