Rearrange argument order

This commit is contained in:
Brian Schroeder 2015-08-11 12:03:22 -04:00 committed by patrick brisbin
parent 62e4260f5c
commit 8af444ddb2
No known key found for this signature in database
GPG Key ID: ADB6812F871D4478

View File

@ -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