fix: pass upId to JWT if logging in through SAML (#17566)

* pass `upId` to JWT if logging in through SAML

* Correct change
This commit is contained in:
Joe Au-Yeung
2024-11-08 22:43:56 +00:00
committed by GitHub
parent a1477dc7e1
commit 9c67ee7375
@@ -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 {