@atproto/jwk
Version:
A library for working with JSON Web Keys (JWKs) in TypeScript. This is meant to be extended by environment-specific libraries like @atproto/jwk-jose.
16 lines (10 loc) • 320 B
text/typescript
import { z } from 'zod'
import { jwkPubSchema, jwkSchema } from './jwk.js'
export const jwksSchema = z.object({
keys: z.array(jwkSchema),
})
export type Jwks = z.infer<typeof jwksSchema>
export const jwksPubSchema = z.object({
keys: z.array(jwkPubSchema),
})
export type JwksPub = z.infer<typeof jwksPubSchema>