@@ -11,20 +11,6 @@ import { AxiosInstance } from "axios";
1111export class Jwt {
1212 constructor ( private readonly config : IInternalConfig , private readonly request : AxiosInstance ) { }
1313
14- /**
15- * Verifies a token using a public certificate. For security reasons the
16- * `algorithms` option defaults to only allow `RS256` to avoid algorithm
17- * confusion attacks. Callers may pass additional `VerifyOptions` when
18- * needed. Resolves with a `Token` instance on success.
19- */
20- /**
21- * Verify token offline using a public certificate.
22- * Defaults to `RS256` algorithm allowed list for safety.
23- * @param accessToken - JWT string to be verified
24- * @param cert - Public certificate or key used for verification
25- * @param options - Optional jsonwebtoken VerifyOptions
26- * @returns A Promise resolving to a `Token` instance if verification succeeds
27- */
2814 /**
2915 * Verify token offline using a public certificate.
3016 * Defaults to `RS256` algorithm allowed list for safety.
@@ -50,13 +36,6 @@ export class Jwt {
5036 } ) ;
5137 }
5238
53- /**
54- * Decode a token into a `Token` wrapper without performing cryptographic
55- * verification. Useful in contexts where the token will be inspected
56- * but not trusted until verified by other means.
57- * @param accessToken - The JWT string to decode
58- * @returns A `Token` instance containing the parsed payload
59- */
6039 /**
6140 * Decode a token into a `Token` wrapper without performing cryptographic
6241 * verification. Useful in contexts where the token will be inspected
0 commit comments