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

What if the refresh token is compromised

Aperta
#923 2 commenti 2 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
15/100
Tipo di issue
Documentazione
Chiarezza
Da chiarire
Stato di attività
Ferma
Stack tecnologico
node.js

Direzione di ricerca

La issue non indica file, test o punti di ingresso del codice; chiede una spiegazione concettuale dei JWT refresh token compromessi. Inizia esaminando l’utilizzo di JWT nel progetto e le linee guida pertinenti sull’autenticazione, quindi documenta una risposta chiara che descriva cosa dovrebbe accadere quando un refresh token viene rubato.

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

Descrizione

As far as I understand a JWT token has two parts

  1. access token (short validity)
  2. refresh token (long validity)

The purpose of keeping the access token short lived is if it gets compromised, the user will not be access the resource after its expiry.

The purpose of keeping the refresh token long lived is if the access token gets expired, the refresh token can then be used to generate a new access token OR increase the expiry time of the access token.

My question is, what if the refresh token gets compromised? In that case what is the whole point of keeping the access token short lived? Because the hacker can then keep reissuing a new access token each time it gets expired using the stolen refresh token.

Can someone explain to me please?

Lingua principale
JavaScript
Stelle
18.2k
Fork
1.3k
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Guida per i contributori

Apri la guida per i contributori

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 auth0/node-jsonwebtoken

Tutte le issue di auth0/node-jsonwebtoken

Issue simili

Altre issue su JavaScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.