Skip to content

Commit 6acbb6a

Browse files
committed
Formatting
1 parent fc1ce03 commit 6acbb6a

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

packages/auth/src/api/index.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,11 @@
1515
* limitations under the License.
1616
*/
1717

18-
import { FirebaseError, getModularInstance, isCloudflareWorker, querystring } from '@firebase/util';
18+
import {
19+
FirebaseError,
20+
isCloudflareWorker,
21+
querystring
22+
} from '@firebase/util';
1923

2024
import { AuthErrorCode, NamedErrorParams } from '../core/errors';
2125
import {
@@ -288,7 +292,8 @@ export function _getFinalTarget(
288292
authInternal._getPersistenceType() === PersistenceType.COOKIE &&
289293
CookieAuthProxiedEndpoints.includes(path)
290294
) {
291-
const cookiePersistence = authInternal._getPersistence() as CookiePersistence;
295+
const cookiePersistence =
296+
authInternal._getPersistence() as CookiePersistence;
292297
return cookiePersistence._getFinalTarget(finalTarget).toString();
293298
}
294299

packages/auth/src/platform_browser/persistence/cookie_storage.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export class CookiePersistence implements PersistenceInternal {
4646
listenerUnsubscribes: Map<StorageEventListener, () => void> = new Map();
4747

4848
// TODO define hostname in the constructor
49-
_getFinalTarget(originalUrl: string): URL|string {
49+
_getFinalTarget(originalUrl: string): URL | string {
5050
if (typeof window === undefined) {
5151
return originalUrl;
5252
}
@@ -145,7 +145,7 @@ export class CookiePersistence implements PersistenceInternal {
145145
/**
146146
* An implementation of {@link Persistence} of type `COOKIE`, for use on the client-side in
147147
* applications leveraging hybrid rendering and middleware.
148-
*
148+
*
149149
* @remarks This persistence method requires companion middleware to function, such as that provided
150150
* by {@link https://firebaseopensource.com/projects/firebaseextended/reactfire/ | ReactFire} for
151151
* NextJS.

0 commit comments

Comments
 (0)