mirror of
https://github.com/freckle/yesod-auth-oauth2.git
synced 2026-09-01 01:13:49 +02:00
Fix documentation error
This commit is contained in:
parent
3c3c8f019d
commit
1e732ff83b
@ -27,12 +27,11 @@ oauth2Url name = PluginR name ["forward"]
|
|||||||
authOAuth2 :: YesodAuth m
|
authOAuth2 :: YesodAuth m
|
||||||
=> Text -- ^ Service name
|
=> Text -- ^ Service name
|
||||||
-> OAuth2 -- ^ Service details
|
-> OAuth2 -- ^ Service details
|
||||||
|
-> (AccessToken -> IO (Creds m))
|
||||||
-- | This function defines how to take an @'AccessToken'@ and
|
-- ^ This function defines how to take an @'AccessToken'@ and
|
||||||
-- retrieve additional information about the user, to be
|
-- retrieve additional information about the user, to be
|
||||||
-- set in the session as @'Creds'@. Usually this means a
|
-- set in the session as @'Creds'@. Usually this means a
|
||||||
-- second authorized request to @api/me.json@.
|
-- second authorized request to @api/me.json@.
|
||||||
-> (AccessToken -> IO (Creds m))
|
|
||||||
-> AuthPlugin m
|
-> AuthPlugin m
|
||||||
authOAuth2 name oauth getCreds = AuthPlugin name dispatch login
|
authOAuth2 name oauth getCreds = AuthPlugin name dispatch login
|
||||||
|
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
name: yesod-auth-oauth2
|
name: yesod-auth-oauth2
|
||||||
version: 0.0.1
|
version: 0.0.2
|
||||||
license: BSD3
|
license: BSD3
|
||||||
license-file: LICENSE
|
license-file: LICENSE
|
||||||
author: Tom Streller
|
author: Tom Streller
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user