diff --git a/Yesod/Auth/OAuth2/Nylas.hs b/Yesod/Auth/OAuth2/Nylas.hs index 6959317..93a465e 100644 --- a/Yesod/Auth/OAuth2/Nylas.hs +++ b/Yesod/Auth/OAuth2/Nylas.hs @@ -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