firebase / firebase/firebase-admin-node

Firebase-admin verifies expired token (Cause of expiration: Change in credentials)

Aperta
#1,853 1 commento 0 reazioni 0 assegnatari Vedi su GitHub
needs-triage
Lingua principale
TypeScript
Stelle
1.7k
Fork
419
Merge medio
3g 10h
PR unite (30g)
16

Descrizione

### Environment

I'm using ubuntu 21
Firebase-admin 10.2.0
node v16

#### Steps to reproduce:

1. In the web app, sign in with your firebase user credentials (email/password in my case)
2. Now make a request to your backend API accessing an endpoint that will modify the user's email.
3. After this, the front-end app will indicate that the user needs to reauthenticate with firebase when trying to use the old token to make firebase requests.
4. Yet on the backend application, the front end can still send the old token to my backend API and the `verifyIdToken` method still validates the token and proceeds.

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Inizia dal punto di ingresso verifyIdToken e riproduci la sequenza riportata nell'ambiente specificato con Ubuntu, Node v16 e Firebase Admin 10.2.0. Conferma il comportamento previsto della scadenza del token dopo la modifica dell'e-mail dell'utente, quindi esamina i test di autenticazione pertinenti o aggiungi un test di regressione; il lavoro è completato quando il token precedente viene gestito in modo coerente con tale aspettativa.

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

Valutazione

Stack tecnologico
firebase, node.js, typescript
Ambito
authentication, backend
Tipo di issue
Bug
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Ferma
Chiarezza
Da chiarire
Idoneità per principianti
35/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.