You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 6, 2023. It is now read-only.
Although I set the Authorization Header like suggested: "Bearer TOKEN" (TOKEN can be the static token for the user or the response of a successful /auth/authenticate POST)
The strange thing is, it works when I send the token as "access_token" in the body of the request.
Like
{
"access_token": TOKEN
}
This wouldn't be a big problem if the npm-package @directus/sdk-js would support this option.
The text was updated successfully, but these errors were encountered:
michibertel
changed the title
Unauthorized request with Authorization Header - only works with access_token in body
Unauthorized request with Authorization header - only works with access_token in body
Jan 17, 2021
When sending any request to the API, I get the response:
Although I set the Authorization Header like suggested: "Bearer TOKEN" (TOKEN can be the static token for the user or the response of a successful /auth/authenticate POST)
The strange thing is, it works when I send the token as "access_token" in the body of the request.
Like
This wouldn't be a big problem if the npm-package @directus/sdk-js would support this option.
Is there any workaround or fix for this issue?
Versions:
directus: 8.6.2
@directus/sdk-js: 6.2.0
MariaDB: 10.3
The text was updated successfully, but these errors were encountered: