Skip to content
Myr

jwa.ts

This file

Path

src/utils/jwt/jwa.ts

37 lines · 655 bytes · TypeScript

Last changed by

Not known.

History of this file

Take it

The walk stopped after 200 commits: lines older than f0b094d point at it.

Merge commit from forkYusuke Wadabefore adoptionf0b094d

lines 1–37why, one step back
1/**
2 * @module3 * JSON Web Algorithms (JWA)4 * https://datatracker.ietf.org/doc/html/rfc75185 */67export enum AlgorithmTypes {8 HS256 = 'HS256',9 HS384 = 'HS384',10 HS512 = 'HS512',11 RS256 = 'RS256',12 RS384 = 'RS384',13 RS512 = 'RS512',14 PS256 = 'PS256',15 PS384 = 'PS384',16 PS512 = 'PS512',17 ES256 = 'ES256',18 ES384 = 'ES384',19 ES512 = 'ES512',20 EdDSA = 'EdDSA',21}2223export type SignatureAlgorithm = keyof typeof AlgorithmTypes2425export type SymmetricAlgorithm = 'HS256' | 'HS384' | 'HS512'2627export type AsymmetricAlgorithm =28 | 'RS256'29 | 'RS384'30 | 'RS512'31 | 'PS256'32 | 'PS384'33 | 'PS512'34 | 'ES256'35 | 'ES384'36 | 'ES512'37 | 'EdDSA'