From ea9fa2e5e382e11833eef73e89ad93eb1c2b82b6 Mon Sep 17 00:00:00 2001 From: hundredark Date: Thu, 16 May 2024 14:28:22 +0800 Subject: [PATCH] export signToken --- src/client/utils/auth.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/utils/auth.ts b/src/client/utils/auth.ts index a261ec52..965520e9 100644 --- a/src/client/utils/auth.ts +++ b/src/client/utils/auth.ts @@ -22,7 +22,7 @@ export const getChallenge = () => { return { verifier, challenge }; }; -const signToken = (payload: Object, private_key: string): string => { +export const signToken = (payload: Object, private_key: string): string => { const header = base64RawURLEncode(serialize({ alg: 'EdDSA', typ: 'JWT' })); const payloadStr = base64RawURLEncode(serialize(payload));