Skip to content

Commit

Permalink
fix: if username and email not available show 'email not found' (#69)
Browse files Browse the repository at this point in the history
Signed-off-by: Denis Golovin <[email protected]>
  • Loading branch information
dgolovin authored Mar 1, 2024
1 parent 597b2d9 commit 2e24c61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/authentication-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,7 @@ export class RedHatAuthenticationService {
scope: scope,
account: {
id: claims.sub,
label: claims.preferred_username || claims.email || '[email protected]',
label: claims.preferred_username || claims.email || 'email not found',
},
};
}
Expand Down

0 comments on commit 2e24c61

Please sign in to comment.