auth-backend: change messaging around missing email (#3287)

This commit is contained in:
Fredrik Adelöw
2020-11-13 10:04:33 +01:00
committed by GitHub
parent 1b11e7b708
commit d21e4172b5
2 changed files with 2 additions and 2 deletions
@@ -139,7 +139,7 @@ export class Auth0AuthProvider implements OAuthHandlers {
const { profile } = response;
if (!profile.email) {
throw new Error('Profile does not contain a profile');
throw new Error('Profile does not contain an email');
}
const id = profile.email.split('@')[0];
@@ -148,7 +148,7 @@ export class OAuth2AuthProvider implements OAuthHandlers {
const { profile } = response;
if (!profile.email) {
throw new Error('Profile does not contain a profile');
throw new Error('Profile does not contain an email');
}
const id = profile.email.split('@')[0];