mirror of
https://github.com/freckle/yesod-auth-oauth2.git
synced 2026-01-22 09:01:55 +01: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 Secret
|
||||
-> AuthPlugin m
|
||||
oauth2Nylas clientId clientSecret =
|
||||
oauth2NylasScoped clientId clientSecret ["email"]
|
||||
oauth2Nylas = oauth2NylasScoped ["email"]
|
||||
|
||||
oauth2NylasScoped :: YesodAuth m
|
||||
=> Text -- ^ Client ID
|
||||
-> Text -- ^ Client Secret
|
||||
-> [Text] -- ^ Scopes
|
||||
=> [Text] -- ^ Scopes
|
||||
-> Text -- ^ Client ID
|
||||
-> Text -- ^ Client Secret
|
||||
-> AuthPlugin m
|
||||
oauth2NylasScoped clientId clientSecret scopes =
|
||||
oauth2NylasScoped scopes clientId clientSecret =
|
||||
authOAuth2 "nylas" oauth fetchCreds
|
||||
where
|
||||
authorizeUrl = encodeUtf8
|
||||
|
||||
Loading…
Reference in New Issue
Block a user