ory/sdk

tokenize_as not being set with xSessionToken is set

Opened this issue · 1 comments

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

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?