From 17b24042105e66e79ec95a832eb127cd29e8781e Mon Sep 17 00:00:00 2001 From: vwxyutarooo Date: Sun, 13 Nov 2022 13:11:54 +0900 Subject: [PATCH] [auth] Fix import/export path on useIdToken --- auth/index.ts | 1 + auth/useIdToken.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/auth/index.ts b/auth/index.ts index 1b40b1e..cf76fc4 100644 --- a/auth/index.ts +++ b/auth/index.ts @@ -40,3 +40,4 @@ export { useVerifyBeforeUpdateEmail, VerifyBeforeUpdateEmailHook, } from './useUpdateUser'; +export { default as useIdToken, IdTokenHook } from './useIdToken'; diff --git a/auth/useIdToken.ts b/auth/useIdToken.ts index 641fe61..795b655 100644 --- a/auth/useIdToken.ts +++ b/auth/useIdToken.ts @@ -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;