Skip to content
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

tokenize_as not being set with xSessionToken is set #307

Open
4 of 5 tasks
jetaggart opened this issue Nov 20, 2023 · 1 comment
Open
4 of 5 tasks

tokenize_as not being set with xSessionToken is set #307

jetaggart opened this issue Nov 20, 2023 · 1 comment
Labels
bug Something is not working.

Comments

@jetaggart
Copy link

Preflight checklist

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

@jetaggart jetaggart added the bug Something is not working. label Nov 20, 2023
@jonas-jonas
Copy link
Member

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something is not working.
Projects
None yet
Development

No branches or pull requests

2 participants