mirror of
https://github.com/freckle/yesod-auth-oauth2.git
synced 2026-09-05 01:13:49 +02:00
Whitespace
This commit is contained in:
parent
a5c691512e
commit
646d2b246b
@ -64,7 +64,7 @@ oauth2Learn clientId clientSecret = authOAuth2 "learn"
|
|||||||
fetchLearnProfile :: Manager -> AccessToken -> IO (Creds m)
|
fetchLearnProfile :: Manager -> AccessToken -> IO (Creds m)
|
||||||
fetchLearnProfile manager token = do
|
fetchLearnProfile manager token = do
|
||||||
result <- authGetJSON manager token "http://learn.thoughtbot.com/api/v1/me.json"
|
result <- authGetJSON manager token "http://learn.thoughtbot.com/api/v1/me.json"
|
||||||
|
|
||||||
case result of
|
case result of
|
||||||
Right (LearnResponse user) -> return $ toCreds user
|
Right (LearnResponse user) -> return $ toCreds user
|
||||||
Left err -> throwIO $ InvalidProfileResponse "learn" err
|
Left err -> throwIO $ InvalidProfileResponse "learn" err
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user