Dojo API: /auth/refresh throws error when refreshToken is supplied in request body
Describe the bug
When sending POST request to /auth/refresh
to get new access token and suppliying the refresh token within request body (url encoded) as described by docs, the API throw error 'Invalid JSON Web Token'
. Supplying refreshToken using HTTP header works.
To Reproduce Steps to reproduce the behavior:
- send POST request to
/auth/refresh
with refreshToken supplied to request body asrt=abcdefg
.
Expected behavior Clearly a new access token would be good.
Desktop (please complete the following information):
- OS: Mac OS, calling API from Node.js
- Dojo Version: latest stable
Additional context
Calling /auth/login
works with apikey
in request body.