File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -231,6 +231,21 @@ The spec does not actually require that you revoke the old token - hence this is
231
231
- Must contain the following keys:
232
232
- * string|number* ** id**
233
233
234
+ ### Required for ` client_credentials ` grant type
235
+
236
+ #### getUserFromClient (clientId, clientSecret, callback)
237
+ - * string* ** clientId**
238
+ - * string* ** clientSecret**
239
+ - * function* ** callback (error, user)**
240
+ - * mixed* ** error**
241
+ - Truthy to indicate an error
242
+ - * object* ** user**
243
+ - The user retrieved from storage or falsey to indicate an invalid user
244
+ - Saved in ` req.user `
245
+ - Must contain the following keys:
246
+ - * string|number* ** id**
247
+
248
+
234
249
### Optional
235
250
236
251
#### generateToken (type, callback)
You can’t perform that action at this time.
0 commit comments