mirror of
https://github.com/freckle/yesod-auth-oauth2.git
synced 2026-09-10 11:34:55 +02:00
Rename creds key email -> public_email
We had a name collision when trying to grab the GitHub user's email address, so if the user did not have a public email address the authentication would fail with a 500 (InvalidProfileResponse).
This commit is contained in:
parent
c514df2c39
commit
9d6d4b420d
@ -107,7 +107,7 @@ toCreds user userMails token = Creds
|
||||
, ("access_token", decodeUtf8 $ accessToken token)
|
||||
]
|
||||
++ maybeExtra "name" (githubUserName user)
|
||||
++ maybeExtra "email" (githubUserPublicEmail user)
|
||||
++ maybeExtra "public_email" (githubUserPublicEmail user)
|
||||
++ maybeExtra "location" (githubUserLocation user)
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user