auth-backend: change messaging around missing email (#3287)
This commit is contained in:
@@ -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];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user