Improve error message on verification of auth code
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Peter Stuifzand 2020-07-27 19:50:31 +02:00
parent 4511657daa
commit 105db3fbc4
WARNING! Although there is a key with this ID in the database it does not verify this commit! This commit is SUSPICIOUS.
GPG Key ID: 374322D56E5209E8

View File

@ -183,7 +183,7 @@ func verifyAuthCode(code, redirectURI, authEndpoint, clientID string) (bool, *au
var authResponse authResponse
err = dec.Decode(&authResponse)
if err != nil {
return false, nil, err
return false, nil, fmt.Errorf("while verifying authentication response from %s: %s", authEndpoint, err)
}
return true, &authResponse, nil