You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Readme.md
+4-2Lines changed: 4 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -215,7 +215,9 @@ The spec does not actually require that you revoke the old token - hence this is
215
215
216
216
### Required for [extension grant](#extension-grants) grant type
217
217
218
-
#### extendedGrant (req, callback)
218
+
#### extendedGrant (grantType, req, callback)
219
+
-*string***grantType**
220
+
- The (custom) grant type
219
221
-*object***req**
220
222
- The raw request
221
223
-*function***callback (error, supported, user)**
@@ -247,7 +249,7 @@ The spec does not actually require that you revoke the old token - hence this is
247
249
## Extension Grants
248
250
You can support extension/custom grants by implementing the extendedGrant method as outlined above.
249
251
Any requests that begin with http(s):// (as [defined in the spec](http://tools.ietf.org/html/rfc6749#section-4.5)) will be passed to it for you to handle.
250
-
You can access the grant type via req.oauth.grantType and you should pass back supported as `false` if you do not support it to ensure a consistent (and compliant) response.
252
+
You can access the grant type via the first argument and you should pass back supported as `false` if you do not support it to ensure a consistent (and compliant) response.
0 commit comments