Skip to content

Commit 38f677d

Browse files
dawsontothkriszyp
authored andcommitted
fix: Remove transitive dependence on ms
1 parent 4cc67e2 commit 38f677d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

security/tokenAuthentication.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import jwt, { type Algorithm, type JwtPayload, type Secret, type SignOptions } from 'jsonwebtoken';
22
import fs from 'fs-extra';
3-
import type { StringValue } from 'ms';
43
import path from 'node:path';
54
import Joi from 'joi';
65
import { validateBySchema } from '../validation/validationWrapper.js';
@@ -23,6 +22,7 @@ import { UserEventMsg } from '../server/threads/itc.js';
2322
import env from '../utility/environment/environmentManager.js';
2423
env.initSync();
2524

25+
type StringValue = SignOptions['expiresIn'];
2626
const OPERATION_TOKEN_TIMEOUT: StringValue = env.get(CONFIG_PARAMS.AUTHENTICATION_OPERATIONTOKENTIMEOUT) || '1d';
2727
const REFRESH_TOKEN_TIMEOUT: StringValue = env.get(CONFIG_PARAMS.AUTHENTICATION_REFRESHTOKENTIMEOUT) || '30d';
2828
const RSA_ALGORITHM: Algorithm = 'RS256';

0 commit comments

Comments
 (0)