diff --git a/packages/integrations/useJwt/index.ts b/packages/integrations/useJwt/index.ts index 02e6c6c753c..013affe564b 100644 --- a/packages/integrations/useJwt/index.ts +++ b/packages/integrations/useJwt/index.ts @@ -2,7 +2,7 @@ import type { ComputedRef } from 'vue-demi' import { computed } from 'vue-demi' import type { MaybeRefOrGetter } from '@vueuse/shared' import { toValue } from '@vueuse/shared' -import jwt_decode from 'jwt-decode' +import { jwtDecode } from 'jwt-decode'; import type { JwtDecodeOptions, JwtHeader, JwtPayload } from 'jwt-decode' export interface UseJwtOptions { @@ -44,7 +44,7 @@ export function useJwt< const decodeWithFallback = (encodedJwt: string, options?: JwtDecodeOptions): T | Fallback => { try { - return jwt_decode(encodedJwt, options) + return jwtDecode(encodedJwt, options) } catch (err) { onError?.(err)