Skip to content

Commit

Permalink
fix(auth, types): instantiating OAuthProvider returns OAuthProvider
Browse files Browse the repository at this point in the history
previously it returned AuthProvider which had none
of the necessary OAuthProvider interface methods
  • Loading branch information
mikehardy committed Jan 16, 2025
1 parent a8fe167 commit e068e12
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/auth/lib/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,13 +112,13 @@ export namespace FirebaseAuthTypes {
/**
* Interface that represents an OAuth provider. Implemented by other providers.
*/
export interface OAuthProvider {
export interface OAuthProvider extends AuthProvider {
/**
* The provider ID of the provider.
* @param providerId
*/
// eslint-disable-next-line @typescript-eslint/no-misused-new
new (providerId: string): AuthProvider;
new (providerId: string): OAuthProvider;
/**
* Creates a new `AuthCredential`.
*
Expand Down

0 comments on commit e068e12

Please sign in to comment.