Azard / egg-oauth2-server

:star2: OAuth2 server plugin for egg.js based on node-oauth2-server
MIT License
179 stars 45 forks source link

获取token老是报错 #17

Closed acodercat closed 6 years ago

acodercat commented 6 years ago

获取token body里面传哪些参数呢,希望文档可以写下 { "error": "invalid_client", "error_description": "Invalid client: cannot retrieve client credentials" }

Azard commented 6 years ago

在 header 里面传,可以参考:https://github.com/Azard/egg-oauth2-server/blob/master/test/oauth2-server.test.js