firebase / firebase/firebase-admin-node
secretOrPrivateKey must be an asymmetric key when using RS256
- Ngôn ngữ chính
- TypeScript
- Star
- 1.7k
- Fork
- 419
- Merge trung bình
- 3 ngày 10 giờ
- Pull request đã merge (30 ngày)
- 16
Mô tả
* 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 ?
Hướng dẫn đóng góp
Hướng nghiên cứu
Bắt đầu bằng cách tái hiện lỗi của lần gọi đầu tiên đến auth.createUser với các phiên bản Firebase Admin SDK và Node.js được liệt kê, sau đó theo dõi quá trình khởi tạo Firebase Auth và xử lý khóa RS256. Công việc được xem là hoàn tất khi xác định được tại sao chỉ lần gọi đầu tiên từ chối khóa bất đối xứng và thêm một bài kiểm thử hồi quy để xác minh rằng lần gọi createUser đầu tiên thành công.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- firebase, nodejs, typescript
- Lĩnh vực
- authentication
- Loại issue
- Lỗi
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Cần làm rõ
- Mức phù hợp với người mới
- 25/100