Skip to content

Commit 74a867a

Browse files
Ace Nassrijmdobry
Ace Nassri
authored andcommitted
Docs: pass parameters to redirect URIs (#702)
* Docs: pass parameters to redirect URIs Fixes #685 * Update README.md
1 parent 491a580 commit 74a867a

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,8 +169,11 @@ var url = oauth2Client.generateAuthUrl({
169169
// 'online' (default) or 'offline' (gets refresh_token)
170170
access_type: 'offline',
171171

172-
// If you only need one scope you can pass it as string
173-
scope: scopes
172+
// If you only need one scope you can pass it as a string
173+
scope: scopes,
174+
175+
// Optional property that passes state parameters to redirect URI
176+
// state: { foo: 'bar' }
174177
});
175178
```
176179

0 commit comments

Comments
 (0)