UNPKG

@veraid/kliento

Version:

Self-contained client authentication tokens

15 lines 443 B
import { compileSchema } from './utilities/ajv.js'; const TOKEN_SCHEMA = { properties: { audience: { type: 'string' }, claims: { additionalProperties: { type: 'string' }, propertyNames: { type: 'string' }, type: 'object', }, }, required: ['audience'], type: 'object', }; export const isValidToken = compileSchema(TOKEN_SCHEMA); //# sourceMappingURL=TokenSchema.js.map