From 286850f2d73d1bdbfdb5a22d9c3d8dad7b044c3b Mon Sep 17 00:00:00 2001 From: Joseph Garrone Date: Sun, 22 Oct 2023 12:01:11 +0200 Subject: [PATCH] Slight API modification --- src/index.ts | 3 +-- src/tools/decodeJwt.ts | 2 ++ 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/index.ts b/src/index.ts index 7d287c9..149cf32 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,4 +1,3 @@ export { createOidc } from "./oidc"; export type { Oidc } from "./oidc"; -import decodeJwt from "jwt-decode"; -export { decodeJwt }; +export { decodeJwt } from "./tools/decodeJwt"; diff --git a/src/tools/decodeJwt.ts b/src/tools/decodeJwt.ts index e69de29..1be88cf 100644 --- a/src/tools/decodeJwt.ts +++ b/src/tools/decodeJwt.ts @@ -0,0 +1,2 @@ +import decodeJwt from "jwt-decode"; +export { decodeJwt };