mohd7469 / oauth2orize-examples

Some oauth examples and implementation.
MIT License
230 stars 95 forks source link

Basic /oauth/token does not work #30

Closed macx78 closed 4 years ago

macx78 commented 4 years ago

curl -X POST "http://localhost:3000/oauth/token" -d "grant_type=password&client_id=abc123&client_secret=ssh-secret&username=bob&password=secret"

Error: {"error":"server_error","error_description":"authCode is not defined"}

macx78 commented 4 years ago

resolved it by changing authCode.userName to const params = { username: user.userName };