diff --git a/packages/features/auth/lib/next-auth-options.ts b/packages/features/auth/lib/next-auth-options.ts index 3feb979677..3c51b393c7 100644 --- a/packages/features/auth/lib/next-auth-options.ts +++ b/packages/features/auth/lib/next-auth-options.ts @@ -564,7 +564,7 @@ export const getOptions = ({ if (account.type === "credentials") { // return token if credentials,saml-idp if (account.provider === "saml-idp") { - return token; + return { ...token, upId: user.profile?.upId ?? token.upId ?? null } as JWT; } // any other credentials, add user info return {