Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Documentation is wrong for creating JWT

Aperta
#1,633 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
55/100
Tipo di issue
Documentazione
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
typescript
Ambito
documentation

Direzione di ricerca

Inizia dalle righe referenziate di code-examples/sdk/typescript/src/session/whoami-jwt.ts e confrontale con la documentazione identities/session-to-jwt-cors. Verifica i nomi tokenizeAs e session.data.tokenized e determina se sessionId è necessario. Il lavoro è completato quando l’esempio TypeScript e la documentazione pubblicata utilizzano l’API client Ory corrente e funzionano seguendoli.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
TypeScript
Stelle
161
Fork
1.9k
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di ory/docs

Tutte le issue di ory/docs

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.