mirror of
https://github.com/freckle/yesod-auth-oauth2.git
synced 2026-04-19 01:14:12 +02:00
Rearrange argument order
This commit is contained in:
parent
62e4260f5c
commit
8af444ddb2
@ -53,15 +53,14 @@ oauth2Nylas :: YesodAuth m
|
|||||||
=> Text -- ^ Client ID
|
=> Text -- ^ Client ID
|
||||||
-> Text -- ^ Client Secret
|
-> Text -- ^ Client Secret
|
||||||
-> AuthPlugin m
|
-> AuthPlugin m
|
||||||
oauth2Nylas clientId clientSecret =
|
oauth2Nylas = oauth2NylasScoped ["email"]
|
||||||
oauth2NylasScoped clientId clientSecret ["email"]
|
|
||||||
|
|
||||||
oauth2NylasScoped :: YesodAuth m
|
oauth2NylasScoped :: YesodAuth m
|
||||||
=> Text -- ^ Client ID
|
=> [Text] -- ^ Scopes
|
||||||
-> Text -- ^ Client Secret
|
-> Text -- ^ Client ID
|
||||||
-> [Text] -- ^ Scopes
|
-> Text -- ^ Client Secret
|
||||||
-> AuthPlugin m
|
-> AuthPlugin m
|
||||||
oauth2NylasScoped clientId clientSecret scopes =
|
oauth2NylasScoped scopes clientId clientSecret =
|
||||||
authOAuth2 "nylas" oauth fetchCreds
|
authOAuth2 "nylas" oauth fetchCreds
|
||||||
where
|
where
|
||||||
authorizeUrl = encodeUtf8
|
authorizeUrl = encodeUtf8
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user