@@ -88,13 +88,13 @@ export interface Auth {
88
88
readonly config: Config ;
89
89
readonly currentUser: User | null ;
90
90
readonly emulatorConfig: EmulatorConfig | null ;
91
- readonly firebaseToken: FirebaseToken | null ;
92
91
languageCode: string | null ;
93
92
readonly name: string ;
94
93
onAuthStateChanged(nextOrObserver : NextOrObserver <User | null >, error ? : ErrorFn , completed ? : CompleteFn ): Unsubscribe ;
95
94
onIdTokenChanged(nextOrObserver : NextOrObserver <User | null >, error ? : ErrorFn , completed ? : CompleteFn ): Unsubscribe ;
96
95
setPersistence(persistence : Persistence ): Promise <void >;
97
96
readonly settings: AuthSettings ;
97
+ setTokenRefreshHandler(tokenRefreshHandler : TokenRefreshHandler ): void ;
98
98
signOut(): Promise <void >;
99
99
readonly tenantConfig? : TenantConfig ;
100
100
tenantId: string | null ;
@@ -389,14 +389,6 @@ export const FactorId: {
389
389
// @public
390
390
export function fetchSignInMethodsForEmail(auth : Auth , email : string ): Promise <string []>;
391
391
392
- // @public (undocumented)
393
- export interface FirebaseToken {
394
- // (undocumented)
395
- readonly expirationTime: number ;
396
- // (undocumented)
397
- readonly token: string ;
398
- }
399
-
400
392
// @public
401
393
export function getAdditionalUserInfo(userCredential : UserCredential ): AdditionalUserInfo | null ;
402
394
@@ -743,6 +735,12 @@ export class RecaptchaVerifier implements ApplicationVerifierInternal {
743
735
verify(): Promise <string >;
744
736
}
745
737
738
+ // @public
739
+ export interface RefreshIdpTokenResult {
740
+ idpConfigId: string ;
741
+ idToken: string ;
742
+ }
743
+
746
744
// @public
747
745
export function reload(user : User ): Promise <void >;
748
746
@@ -815,6 +813,11 @@ export interface TenantConfig {
815
813
tenantId: string ;
816
814
}
817
815
816
+ // @public
817
+ export interface TokenRefreshHandler {
818
+ refreshIdpToken(): Promise <RefreshIdpTokenResult >;
819
+ }
820
+
818
821
// @public
819
822
export interface TotpMultiFactorAssertion extends MultiFactorAssertion {
820
823
}
0 commit comments