-
-
Notifications
You must be signed in to change notification settings - Fork 379
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TS: apikey/accessToken not included in requests #1932
Comments
Weirdly i found this did work when using ProjectAPI from "@ory/client": "^1.1.21" |
Hi, thanks for the report. When working with the Ory Network, we recommend using the Though, I also only got that working when using the Also, just noticed that this report is a month old, sorry for the delay. |
I see this in @ory/kratos-client as well. We self-host so do not use @ory/client. Periodically the token does not get added to requests. I've not been able to track down what specifically causes this though. |
I encountered the same issue while switching from Why is there two parameters, and why There are no example in your documentation showing how to use the SDKs, so it's virtually impossible to know without searching in this repo' issues... |
You need to use the accessTokenKey :) |
Preflight checklist
Describe the bug
apiKey/accessToken does not get added to the request when using the typescript SDK, resulting in admin calls rejecting as unauthorised.
You can work around it if you set the baseOptions to specify the header yourself.
Reproducing the bug
Relevant log output
Relevant configuration
No response
Version
"@ory/hydra-client": "^2.0.2"
On which operating system are you observing this issue?
Ory Network
In which environment are you deploying?
Ory Network
Additional Context
No response
The text was updated successfully, but these errors were encountered: