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

Commit

Permalink
Merge pull request #92 from ignaciosantise/master
Browse files Browse the repository at this point in the history
Added scope as a prop
  • Loading branch information
adamjmcgrath authored Jan 17, 2018
2 parents 87356ae + fa90596 commit f4b52e5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/providers/google.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit f4b52e5

Please sign in to comment.