firebase / firebase/firebase-admin-node
Firebase-admin verifies expired token (Cause of expiration: Change in credentials)
- Lenguaje dominante
- TypeScript
- Estrellas
- 1.7k
- Forks
- 419
- Merge medio
- 3 d 10 h
- PR fusionados (30 d)
- 16
Descripción
### 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.
Guía de contribución
Línea de trabajo
Comienza en el punto de entrada verifyIdToken y reproduce la secuencia indicada en el entorno especificado de Ubuntu, Node v16 y Firebase Admin 10.2.0. Confirma el comportamiento esperado de expiración del token después de que cambie el correo electrónico del usuario y, a continuación, sigue las pruebas de autenticación relevantes o añade una prueba de regresión; se considera terminado cuando el token antiguo se gestiona de forma coherente con esa expectativa.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- firebase, node.js, typescript
- Área
- authentication, backend
- Tipo de issue
- Error
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Estado de actividad
- Estancado
- Claridad
- Necesita aclaración
- Aptitud para principiantes
- 35/100