There was an error while loading. Please reload this page.
1 parent a5c6915 commit 646d2b2Copy full SHA for 646d2b2
Yesod/Auth/OAuth2/Learn.hs
@@ -64,7 +64,7 @@ oauth2Learn clientId clientSecret = authOAuth2 "learn"
64
fetchLearnProfile :: Manager -> AccessToken -> IO (Creds m)
65
fetchLearnProfile manager token = do
66
result <- authGetJSON manager token "http://learn.thoughtbot.com/api/v1/me.json"
67
-
+
68
case result of
69
Right (LearnResponse user) -> return $ toCreds user
70
Left err -> throwIO $ InvalidProfileResponse "learn" err
0 commit comments