Skip to content

Commit 41b3b9e

Browse files
Copilotjkyberneees
andauthored
Remove duplicate JSDoc comments in Jwt.ts (#21)
* Initial plan * Remove duplicate JSDoc comments from Jwt.ts methods Co-authored-by: jkyberneees <4096860+jkyberneees@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: jkyberneees <4096860+jkyberneees@users.noreply.github.com>
1 parent 86ea476 commit 41b3b9e

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

libs/Jwt.ts

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -11,20 +11,6 @@ import { AxiosInstance } from "axios";
1111
export 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

Comments
 (0)