Skip to content

Commit

Permalink
export signToken
Browse files Browse the repository at this point in the history
  • Loading branch information
hundredark committed May 16, 2024
1 parent ba30c0a commit ea9fa2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/client/utils/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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));

Expand Down

0 comments on commit ea9fa2e

Please sign in to comment.