File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
packages/auth/src/core/auth Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -271,12 +271,16 @@ export class AuthImpl implements AuthInternal, _FirebaseService {
271
271
try {
272
272
// Awaits for the callback method to execute. The callback method
273
273
// is responsible for performing the exchangeToken(auth, valid3pIdpToken)
274
- const result : RefreshIdpTokenResult = await this . tokenRefreshHandler . refreshIdpToken ( ) ;
275
- _assert ( result . idToken && result . idpConfigId , AuthErrorCode . INVALID_CREDENTIAL ) ;
274
+ const result : RefreshIdpTokenResult =
275
+ await this . tokenRefreshHandler . refreshIdpToken ( ) ;
276
+ _assert (
277
+ result . idToken && result . idpConfigId ,
278
+ AuthErrorCode . INVALID_CREDENTIAL
279
+ ) ;
276
280
await exchangeToken ( this , result . idpConfigId , result . idToken ) ;
277
281
return this . getFirebaseAccessToken ( false ) ;
278
282
} catch ( error ) {
279
- console . error ( " Token refresh failed:" , error ) ;
283
+ console . error ( ' Token refresh failed:' , error ) ;
280
284
return null ;
281
285
}
282
286
}
You can’t perform that action at this time.
0 commit comments