firebase / firebase/firebase-admin-node

Node v18 throwing credential implementation issue but not with node v16

Đang mở
#2,234 6 bình luận 3 reaction 1 người được giao Được @lahirumaramba nhận Xem trên GitHub
api: core
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ả

Describe your environment

* Operating System version: Docker using `FROM node:18.16`
* Firebase SDK version: 11.9
* Firebase Product: auth
* Node.js version: 18.16
* NPM version: 9.5.1

#### Steps to reproduce:

When I upgraded my docker node from 16.19 to 18.16, I get this error:
```
credential implementation provided to initializeapp() via the "credential" property failed to fetch a valid google oauth2 access token.
```

However, if I downgrade it back to 16.19, the notifications get pushed out.

From the package.json it says that it can support node 14 and higher but its failing on v18 for me.

#### Relevant Code:
I'm using very basic:
```
initializeApp({
credential: applicationDefault(),
})
```

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.