Skip to content

Commit 09dfc68

Browse files
committed
chore: format
1 parent 0e1fcf0 commit 09dfc68

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

packages/react/src/auth/useUserGetIdTokenMutation.test.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import {
55
} from "firebase/auth";
66
import { afterEach, beforeEach, describe, expect, test, vi } from "vitest";
77
import { auth, wipeAuth } from "~/testing-utils";
8-
import { useUserGetIdTokenMutation } from "./useUserGetIdTokenMutation";
98
import { queryClient, wrapper } from "../../utils";
9+
import { useUserGetIdTokenMutation } from "./useUserGetIdTokenMutation";
1010

1111
describe("useUserGetIdTokenMutation", () => {
1212
const email = "[email protected]";
@@ -27,7 +27,7 @@ describe("useUserGetIdTokenMutation", () => {
2727
const userCredential = await signInWithEmailAndPassword(
2828
auth,
2929
email,
30-
password
30+
password,
3131
);
3232
const { user } = userCredential;
3333

@@ -49,7 +49,7 @@ describe("useUserGetIdTokenMutation", () => {
4949
const userCredential = await signInWithEmailAndPassword(
5050
auth,
5151
email,
52-
password
52+
password,
5353
);
5454
const { user } = userCredential;
5555

@@ -71,14 +71,14 @@ describe("useUserGetIdTokenMutation", () => {
7171
const userCredential = await signInWithEmailAndPassword(
7272
auth,
7373
email,
74-
password
74+
password,
7575
);
7676
const { user } = userCredential;
7777
const onSuccess = vi.fn();
7878

7979
const { result } = renderHook(
8080
() => useUserGetIdTokenMutation(user, { onSuccess }),
81-
{ wrapper }
81+
{ wrapper },
8282
);
8383

8484
await act(async () => {

packages/react/src/auth/useUserGetIdTokenMutation.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import { type UseMutationOptions, useMutation } from "@tanstack/react-query";
2-
import { type User, type AuthError, getIdToken } from "firebase/auth";
2+
import { type AuthError, getIdToken, type User } from "firebase/auth";
33

44
type AuthUseMutationOptions<
55
TData = unknown,
66
TError = Error,
7-
TVariables = void
7+
TVariables = void,
88
> = Omit<UseMutationOptions<TData, TError, TVariables>, "mutationFn"> & {
99
auth?: {
1010
forceRefresh?: boolean;
@@ -13,7 +13,7 @@ type AuthUseMutationOptions<
1313

1414
export function useUserGetIdTokenMutation(
1515
user: User,
16-
options?: AuthUseMutationOptions<string, AuthError, boolean>
16+
options?: AuthUseMutationOptions<string, AuthError, boolean>,
1717
) {
1818
return useMutation<string, AuthError, boolean>({
1919
...options,

0 commit comments

Comments
 (0)