Documentation is wrong for creating JWT
Opened this issue · 0 comments
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
I think this is the code backing https://www.ory.sh/docs/identities/session-to-jwt-cors
tokenize_as
should be tokenizeAs
and then two lines down should be session.data.tokenized
I would just open a PR with the update but I think maybe someone should go over this as it seems that sessionId
is getting passed in for no reason? So maybe there are more issues? Anyhow while I can update it to get it "working" a person with a little bit more knowledge would probably be best looking though it just to make sure everything is up to date.
Thanks!
Reproducing the bug
Follow the documentation found here https://www.ory.sh/docs/identities/session-to-jwt-cors
Relevant log output
none
Relevant configuration
just the ORY network config as describe in the docs in this file.
Version
ory/client@1.5.1
On which operating system are you observing this issue?
Linux
In which environment are you deploying?
Ory Network
Additional Context
I'm happy to provide more information, I assumed the docs would mirror the latest cli.