ory/docs

Documentation is wrong for creating JWT

Opened this issue · 0 comments

Preflight checklist

Ory Network Project

No response

Describe the bug

tokenize_as: "jwt_example_template1",

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.