UNPKG

@appsemble/utils

Version:

Utility functions used in Appsemble internally

37 lines 1.13 kB
import { scopes } from '../../../constants/index.js'; export const OAuth2ClientCredentials = { type: 'object', description: 'OAuth2 client credentials', required: ['description', 'scopes'], additionalProperties: false, properties: { id: { type: 'string', description: 'The generated client id', readOnly: true, }, secret: { type: 'string', description: 'The generated client secret', readOnly: true, }, description: { type: 'string', description: 'A description for the user to recognize the client.', maxLength: 50, }, expires: { type: 'string', description: 'When the client credentials expire automatically.', format: 'date-time', }, scopes: { type: 'array', description: 'The scopes that have been granted to the client.', items: { enum: [...scopes], }, }, }, }; //# sourceMappingURL=OAuth2ClientCredentials.js.map