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; diff --git a/package-lock.json b/package-lock.json index 6f5d414..24ba04d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "react-firebase-hooks", - "version": "5.1.0", + "version": "5.1.1", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "react-firebase-hooks", - "version": "5.1.0", + "version": "5.1.1", "license": "Apache-2.0", "devDependencies": { "@babel/core": "^7.19.6", diff --git a/package.json b/package.json index ddf8912..5e09632 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-firebase-hooks", - "version": "5.1.0", + "version": "5.1.1", "description": "React Hooks for Firebase", "author": "CS Frequency Limited (https://csfrequency.com)", "license": "Apache-2.0",