Skip to content

Commit

Permalink
small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dsavelev committed Oct 4, 2024
1 parent 2c79b78 commit 58be02a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/vercel/VercelMPIdentityProvider.java
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ public BrokeredIdentityContext getFederatedIdentity(String response) {
protected BrokeredIdentityContext extractIdentity(AccessTokenResponse tokenResponse, JsonWebToken idToken) {
String name = (String) idToken.getOtherClaims().get("user_name");
String email = (String) idToken.getOtherClaims().get("user_email");
String userIdPerInstallation = (String) idToken.getOtherClaims().get("user_id")
String userIdPerInstallation = (String) idToken.getOtherClaims().get("user_id");

if (email == null || email.isEmpty()) {
email = EMAIL_FALLBACK_TEMPLATE.formatted(userIdPerInstallation);
Expand Down

0 comments on commit 58be02a

Please sign in to comment.