Skip to content
This repository was archived by the owner on Dec 7, 2021. It is now read-only.

Commit f4b52e5

Browse files
authored
Merge pull request #92 from ignaciosantise/master
Added scope as a prop
2 parents 87356ae + fa90596 commit f4b52e5

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/providers/google.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,15 @@ const getUser = curry((request, credentials) => pipe(
4545
),
4646
)(credentials));
4747

48-
export const authorize = ({ dance, request }, { appId, callback }) =>
48+
export const authorize = (
49+
{ dance, request },
50+
{ appId, callback, scope = SCOPE }) =>
4951
pipeP(
5052
dance,
5153
fromQueryString,
5254
checkError,
5355
merge({ appId, callback }),
54-
)(authorizationUrl(AUTH, appId, callback, SCOPE, 'code'));
56+
)(authorizationUrl(AUTH, appId, callback, scope, 'code'));
5557

5658
export const identify = curry((request, { appId, callback, code }) =>
5759
pipeP(

0 commit comments

Comments
 (0)