Skip to content

AuthProvider typescript properties not working #8230

Closed Answered by mikehardy
BB-BenBridges asked this question in Q&A
Discussion options

You must be logged in to vote

not expected no

This looks like the issue:

// eslint-disable-next-line @typescript-eslint/no-misused-new
new (providerId: string): AuthProvider;

Note it is returning AuthProvider not OAuthProvider. You could likely immediately work around this by calling the new with an as 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 …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@BB-BenBridges
Comment options

Answer selected by mikehardy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment