Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Documentation is wrong for creating JWT

未关闭
#1,633 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
55/100
Issue 类型
文档
描述清晰度
基本清楚
活跃度
停滞
技术栈
typescript
领域
documentation

调研方向

从 code-examples/sdk/typescript/src/session/whoami-jwt.ts 中引用的行开始,并将其与 identities/session-to-jwt-cors 文档进行比较。验证 tokenizeAs 和 session.data.tokenized 这两个名称,并确定是否需要 sessionId。当 TypeScript 示例和已发布的文档使用当前的 Ory client API,并且按照它们操作时能够正常工作,即表示完成。

由索引模型根据 Issue 内容生成。

描述

bug
Preflight checklist
Ory Network Project

No response

Describe the bug

https://github.com/ory/docs/blob/2266bc4026d92c854d01d9101afc1b609847eb5d/code-examples/sdk/typescript/src/session/whoami-jwt.ts#L12

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/[email protected]

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.

主要语言
TypeScript
星标
161
派生
1.9k
PR 合并指标
30 天内没有已合并 PR

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

ory/docs 的其他 Issue

查看 ory/docs 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。