diff --git a/Yesod/Auth/OAuth2.hs b/Yesod/Auth/OAuth2.hs index 99362d4..3463ddc 100644 --- a/Yesod/Auth/OAuth2.hs +++ b/Yesod/Auth/OAuth2.hs @@ -27,12 +27,11 @@ oauth2Url name = PluginR name ["forward"] authOAuth2 :: YesodAuth m => Text -- ^ Service name -> OAuth2 -- ^ Service details - - -- | This function defines how to take an @'AccessToken'@ and + -> (AccessToken -> IO (Creds m)) + -- ^ This function defines how to take an @'AccessToken'@ and -- retrieve additional information about the user, to be -- set in the session as @'Creds'@. Usually this means a -- second authorized request to @api/me.json@. - -> (AccessToken -> IO (Creds m)) -> AuthPlugin m authOAuth2 name oauth getCreds = AuthPlugin name dispatch login diff --git a/yesod-auth-oauth2.cabal b/yesod-auth-oauth2.cabal index f11daf4..05e9a7a 100644 --- a/yesod-auth-oauth2.cabal +++ b/yesod-auth-oauth2.cabal @@ -1,5 +1,5 @@ name: yesod-auth-oauth2 -version: 0.0.1 +version: 0.0.2 license: BSD3 license-file: LICENSE author: Tom Streller