AuthProvider typescript properties not working #8230
-
I have an issue when using the example code for Microsoft authentication. The |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
not expected no This looks like the issue: react-native-firebase/packages/auth/lib/index.d.ts Lines 120 to 121 in 9b5c405 Note it is returning AuthProvider not OAuthProvider. You could likely immediately work around this by calling the Why is that necessary though? Shouldn't be. Upstream in firebase-js-sdk which we attempt to harmonize with, they have OAuthProvider in a type inheritance which includes AuthProvider so it shouldn't be necessary. This PR I just made should fix it: You can workaround for now as above, you can ingest the patch-package patch for the Or you can wait for merge and release on that one Either of those should get you sorted - thanks for bringing it up, was definitely a type error |
Beta Was this translation helpful? Give feedback.
not expected no
This looks like the issue:
react-native-firebase/packages/auth/lib/index.d.ts
Lines 120 to 121 in 9b5c405
Note it is returning AuthProvider not OAuthProvider. You could likely immediately work around this by calling the
new
with anas OAuthProvider
Why is that necessary though? Shouldn't be.
Upstream in firebase-js-sdk which we attempt to harmonize with, they have OAuthProvider in a type inheritance which includes AuthProvider so it shouldn't be necessary.
This PR I just made should fix it:
You can workaround for now as above, you can ingest …