Skip to content

Commit

Permalink
fix: fake jwt token create
Browse files Browse the repository at this point in the history
import buffer module

#19
  • Loading branch information
timepresent95 committed Aug 13, 2024
1 parent 6c99712 commit b43129d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/mocks/utils/token.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import {Buffer} from 'buffer';

import {faker} from '@faker-js/faker';

import {Member} from '@/types';
Expand All @@ -20,7 +22,6 @@ export function createFakeJWT(
alg: 'HS256',
typ: 'JWT',
};

const encodedHeader = base64Encode(JSON.stringify(header));

const currentTime = Math.floor(Date.now() / 1000);
Expand Down

0 comments on commit b43129d

Please sign in to comment.