Skip to content

Commit c22e898

Browse files
committed
style(clerk-js): format tokenCache.test.ts per prettier
Wrap the b64 arrow expression in createJwtWithOiat over two lines to match the project's prettier printWidth. CI flagged the original one-liner as a format violation.
1 parent 00fa5c7 commit c22e898

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

packages/clerk-js/src/core/__tests__/tokenCache.test.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,7 @@ function createJwtWithTtl(iatSeconds: number, ttlSeconds: number): string {
3737
function createJwtWithOiat(iatSeconds: number, oiatSeconds: number, ttlSeconds = 60): string {
3838
const header = { alg: 'HS256', typ: 'JWT', oiat: oiatSeconds };
3939
const payload = { sid: 'session_123', exp: iatSeconds + ttlSeconds, iat: iatSeconds };
40-
const b64 = (o: object) =>
41-
btoa(JSON.stringify(o)).replace(/\+/g, '-').replace(/\//g, '_').replace(/=/g, '');
40+
const b64 = (o: object) => btoa(JSON.stringify(o)).replace(/\+/g, '-').replace(/\//g, '_').replace(/=/g, '');
4241
return `${b64(header)}.${b64(payload)}.test-signature`;
4342
}
4443

0 commit comments

Comments
 (0)