Skip to content

Commit

Permalink
Merge pull request #277 from vwxyutarooo/utilise-id-token
Browse files Browse the repository at this point in the history
[auth] Fix import/export path on useIdToken
  • Loading branch information
chrisbianca committed Nov 15, 2022
2 parents 593f479 17b2404 commit faa98f7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions auth/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 40,4 @@ export {
useVerifyBeforeUpdateEmail,
VerifyBeforeUpdateEmailHook,
} from './useUpdateUser';
export { default as useIdToken, IdTokenHook } from './useIdToken';
2 changes: 1 addition & 1 deletion auth/useIdToken.ts
Original file line number Diff line number Diff line change
@@ -1,6 1,6 @@
import { Auth, onIdTokenChanged, User } from 'firebase/auth';
import { useEffect } from 'react';
import { LoadingHook, useLoadingValue } from '../util/dist/util';
import { LoadingHook, useLoadingValue } from '../util';

export type IdTokenHook = LoadingHook<User | null, Error>;

Expand Down

0 comments on commit faa98f7

Please sign in to comment.