Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

app.oauth.grant is not a function (oauth2-server)

enter image description here

Whenever I run node oauth module I get error like

app.oauth.grant is not a function

like image 503
Daksh Sorathia Avatar asked Sep 16 '25 07:09

Daksh Sorathia


1 Answers

I had the same problem yesterday. I switched my dependencies to a lower version of the libraries and things worked. What I ended up with:

"body-parser": "^1.15.2",
"express": "^4.14.0",
"oauth2-server": "^2.4.1",
"request": "^2.83.0"
like image 168
Ronald Bower Avatar answered Sep 19 '25 04:09

Ronald Bower