tokenize_as not being set with xSessionToken is set
Opened this issue · 1 comments
jetaggart commented
Preflight checklist
- I could not find a solution in the existing issues, docs, nor discussions.
- I agree to follow this project's Code of Conduct.
- I have read and am following this repository's Contribution Guidelines.
- I have joined the Ory Community Slack.
- I am signed up to the Ory Security Patch Newsletter.
Ory Network Project
No response
Describe the bug
Using react native I'm trying to use
await sdk
// whoami() returns the session belonging to the session_token:
.toSession({ xSessionToken: auth.session_token, tokenizeAs: "jwt_template" })
But it doesn't seem to be setting the tokenize_at query param so it's not giving me back the expected JWT. If I convert this to a simple fetch it works as expected.
Reproducing the bug
https://github.com/ory/kratos-selfservice-ui-react-native/tree/master
Switch to using JWTs for auth.
Relevant log output
No response
Relevant configuration
No response
Version
1.4.0
On which operating system are you observing this issue?
macOS
In which environment are you deploying?
Ory Network
Additional Context
No response
jonas-jonas commented
Thanks for the report.
I don't see anything in the SDK that could be causing this. Do you have the possibility of debugging the network request made by the SDK?