File tree Expand file tree Collapse file tree 3 files changed +10
-5
lines changed Expand file tree Collapse file tree 3 files changed +10
-5
lines changed Original file line number Diff line number Diff line change 11---
2+ ' firebase ' : minor
23' @firebase/auth ' : minor
34---
45
Original file line number Diff line number Diff line change @@ -74,13 +74,13 @@ export const enum Endpoint {
7474 REVOKE_TOKEN = '/v2/accounts:revokeToken'
7575}
7676
77- const CookieAuthProxiedEndpoints : Array < string > = [
77+ const CookieAuthProxiedEndpoints : string [ ] = [
7878 Endpoint . SIGN_IN_WITH_CUSTOM_TOKEN ,
7979 Endpoint . SIGN_IN_WITH_EMAIL_LINK ,
8080 Endpoint . SIGN_IN_WITH_IDP ,
8181 Endpoint . SIGN_IN_WITH_PASSWORD ,
8282 Endpoint . SIGN_IN_WITH_PHONE_NUMBER ,
83- Endpoint . TOKEN ,
83+ Endpoint . TOKEN
8484] ;
8585
8686export const enum RecaptchaClientType {
@@ -281,7 +281,7 @@ export function _getFinalTarget(
281281 : `${ auth . config . apiScheme } ://${ base } ` ;
282282
283283 // TODO get the exchange URL from the persistence method
284- // don't use startsWith v1/accounts...
284+ // this solves the window test
285285 if (
286286 authInternal . _getPersistence ( ) === PersistenceType . COOKIE &&
287287 CookieAuthProxiedEndpoints . includes ( path )
Original file line number Diff line number Diff line change @@ -74,7 +74,9 @@ export class PersistenceUserManager {
7474 return null ;
7575 }
7676 if ( typeof blob === 'string' ) {
77- const response = await getAccountInfo ( this . auth , { idToken : blob } ) . catch ( ( ) => undefined ) ;
77+ const response = await getAccountInfo ( this . auth , { idToken : blob } ) . catch (
78+ ( ) => undefined
79+ ) ;
7880 if ( ! response ) {
7981 return null ;
8082 }
@@ -157,7 +159,9 @@ export class PersistenceUserManager {
157159 if ( blob ) {
158160 let user : UserInternal ;
159161 if ( typeof blob === 'string' ) {
160- const response = await getAccountInfo ( auth , { idToken : blob } ) . catch ( ( ) => undefined ) ;
162+ const response = await getAccountInfo ( auth , {
163+ idToken : blob
164+ } ) . catch ( ( ) => undefined ) ;
161165 if ( ! response ) {
162166 break ;
163167 }
You can’t perform that action at this time.
0 commit comments