jwa.ts
This file
Path
src/utils/jwt/jwa.ts
37 lines 路 655 bytes 路 TypeScript
Last changed by
Not known.
History of this fileTake it
1234567891011121314151617181920212223242526272829303132333435363738/** * @module * JSON Web Algorithms (JWA) * https://datatracker.ietf.org/doc/html/rfc7518 */
export enum AlgorithmTypes { HS256 = 'HS256', HS384 = 'HS384', HS512 = 'HS512', RS256 = 'RS256', RS384 = 'RS384', RS512 = 'RS512', PS256 = 'PS256', PS384 = 'PS384', PS512 = 'PS512', ES256 = 'ES256', ES384 = 'ES384', ES512 = 'ES512', EdDSA = 'EdDSA',}
export type SignatureAlgorithm = keyof typeof AlgorithmTypes
export type SymmetricAlgorithm = 'HS256' | 'HS384' | 'HS512'
export type AsymmetricAlgorithm = | 'RS256' | 'RS384' | 'RS512' | 'PS256' | 'PS384' | 'PS512' | 'ES256' | 'ES384' | 'ES512' | 'EdDSA'