Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
kabeaty committed Jan 17, 2025
1 parent bfaa017 commit cb3b2d3
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,9 @@ export async function verifyAndRetrieveUser(
throw err;
}

// If SSO token does not include a username but does include a url for user account
// management, then throw a username not found error with information on where the username
// can be set to comment.
if (validationErrors.includes('SSO: "user.username" is required')) {
const ssoToken = token as SSOToken;
if (ssoToken && ssoToken.user?.url) {
Expand Down

0 comments on commit cb3b2d3

Please sign in to comment.