Fix error message for clarity
This commit is contained in:
parent
f537720b52
commit
93cb575d7c
@ -141,7 +141,7 @@ func (p *OIDCProvider) createSessionState(ctx context.Context, token *oauth2.Tok
|
||||
|
||||
email, err := respJSON.Get("email").String()
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("id_token nor userinfo endpoint did not contain an email")
|
||||
return nil, fmt.Errorf("Neither id_token nor userinfo endpoint contained an email")
|
||||
}
|
||||
|
||||
claims.Email = email
|
||||
|
Loading…
Reference in New Issue
Block a user