import type { Algorithm, SignOptions, VerifyOptions } from 'jsonwebtoken'; /** JWT 统一算法:仅 HS256,避免算法混淆 */ export const JWT_SIGN_OPTIONS: SignOptions = { algorithm: 'HS256' }; export const JWT_VERIFY_OPTIONS: VerifyOptions = { algorithms: ['HS256'] as Algorithm[] };