Skip to content

Commit 39663d6

Browse files
committed
Fix generateToken docs. Fixes oauthjs#103
1 parent 4852ef3 commit 39663d6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Readme.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,9 +248,11 @@ The spec does not actually require that you revoke the old token - hence this is
248248

249249
### Optional
250250

251-
#### generateToken (type, callback)
251+
#### generateToken (type, req, callback)
252252
- *string* **type**
253253
- `accessToken` or `refreshToken`
254+
- *object* **req**
255+
- The current express request
254256
- *function* **callback (error, token)**
255257
- *mixed* **error**
256258
- Truthy to indicate an error

0 commit comments

Comments
 (0)