Skip to content

Commit 5568a01

Browse files
committed
Formatting
1 parent f587178 commit 5568a01

File tree

3 files changed

+10
-5
lines changed

3 files changed

+10
-5
lines changed

.changeset/orange-turtles-taste.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
---
2+
'firebase': minor
23
'@firebase/auth': minor
34
---
45

packages/auth/src/api/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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

8686
export 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)

packages/auth/src/core/persistence/persistence_user_manager.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)