Skip to content

Commit

Permalink
Set fallback values for user created by ID-Token
Browse files Browse the repository at this point in the history
  • Loading branch information
fraxachun committed Feb 19, 2025
1 parent 66e6f79 commit 24d0723
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ export class UserPermissionsService {
if (!idToken.sub) throw new Error("JwtPayload does not contain sub.");
return {
id: idToken.sub,
name: idToken.name,
email: idToken.email,
name: idToken.name || "Unknown User",
email: idToken.email || "",
};
}

Expand Down

0 comments on commit 24d0723

Please sign in to comment.