node-oauth2-server icon indicating copy to clipboard operation
node-oauth2-server copied to clipboard

the parameter user in method getAccessToken seems like a string

Open gfafei opened this issue 10 years ago • 1 comments

readme.md writes that the parameter is a object, when i use it , it is a Id stirng;

gfafei avatar Jan 08 '16 02:01 gfafei

check out these tests

https://github.com/thomseddon/node-oauth2-server/blob/master/test/authorise.js#L188-L238

it depends on what you set as the user in model.saveAccessToken if you set a string you get back a string if you set an object you get an object.

deefactorial avatar Jan 13 '16 19:01 deefactorial