firebase / firebase/firebase-admin-node
secretOrPrivateKey must be an asymmetric key when using RS256
- Lenguaje dominante
- TypeScript
- Estrellas
- 1.7k
- Forks
- 419
- Merge medio
- 3 d 10 h
- PR fusionados (30 d)
- 16
Descripción
* Operating System version: Ubuntu 22.10
* Firebase SDK version: 11.3.0
* Firebase Product: auth
* Node.js version: 16.13.2
* NPM version: 8.19.2
### [REQUIRED] Step 3: Describe the problem
I am using Firebase-Admin on a NestJs API, build with NX ; my API is using Admin SDK to create and manage users. For that, I am using the method auth.createUser({email, password}), but Firebase throws an error, ONLY FOR THE FIRST CALL :
`secretOrPrivateKey must be an asymmetric key when using RS256`
I know my private key is readed right, and most of all, only the first call to createUser returns error ; other calls are working great.. So I ended up putting a call with fake datas right after the initialization of Firebase, to be able to use it in other parts of my app, but it doesn't seem so terrible..! I can't find any other people having the same issue, really weird.
Any idea ?
Guía de contribución
Línea de trabajo
Comienza reproduciendo el fallo de la primera llamada a auth.createUser con las versiones indicadas de Firebase Admin SDK y Node.js; después, sigue la inicialización de Firebase Auth y el manejo de la clave RS256. El trabajo estará terminado cuando se identifique por qué solo la primera llamada rechaza la clave asimétrica y se añada una prueba de regresión que verifique que la primera llamada a createUser tiene éxito.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- firebase, nodejs, typescript
- Área
- authentication
- Tipo de issue
- Error
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Estado de actividad
- Estancado
- Claridad
- Necesita aclaración
- Aptitud para principiantes
- 25/100