diff --git a/lib/providers/google.js b/lib/providers/google.js index c397533..55cbe45 100644 --- a/lib/providers/google.js +++ b/lib/providers/google.js @@ -45,13 +45,15 @@ const getUser = curry((request, credentials) => pipe( ), )(credentials)); -export const authorize = ({ dance, request }, { appId, callback }) => +export const authorize = ( + { dance, request }, + { appId, callback, scope = SCOPE }) => pipeP( dance, fromQueryString, checkError, merge({ appId, callback }), - )(authorizationUrl(AUTH, appId, callback, SCOPE, 'code')); + )(authorizationUrl(AUTH, appId, callback, scope, 'code')); export const identify = curry((request, { appId, callback, code }) => pipeP(