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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user