Skip to content
Myr

chore(utils/jwt): add `@module` docs (#3101)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Yusuke Wada · committed by GitHub · parent e513fe7 · Browse files · 5 files+27 added−5 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

5 files+27 added−5 removed

  • other:+27 added−5 removed

5 files+27 added−5 removed

modified:src/utils/jwt/jwa.ts+5 added-2 removed
modified:src/utils/jwt/jws.ts+6 added-3 removed
1/**2 * @module3 * JSON Web Signature (JWS)4 * https://datatracker.ietf.org/doc/html/rfc75155 */67import { getRuntimeKey } from '../../helper/adapter'8import { decodeBase64 } from '../encode'9import type { SignatureAlgorithm } from './jwa'10import { CryptoKeyUsage, JwtAlgorithmNotImplemented } from './types'11import { utf8Encoder } from './utf8'127// JSON Web Signature (JWS)8// https://datatracker.ietf.org/doc/html/rfc7515913type KeyImporterAlgorithm = Parameters<typeof crypto.subtle.importKey>[2]14type KeyAlgorithm =15 | AlgorithmIdentifier16 | RsaHashedImportParams
210 unmodified lines
modified:src/utils/jwt/jwt.ts+6 added
modified:src/utils/jwt/types.ts+5 added
1/**2 * @module3 * Type definitions for JWT utilities.4 */56export class JwtAlgorithmNotImplemented extends Error {7 constructor(alg: string) {8 super(`${alg} is not an implemented algorithm`)9 this.name = 'JwtAlgorithmNotImplemented'
74 unmodified lines
modified:src/utils/jwt/utf8.ts+5 added