UNPKG

@fangcha/backend-kit

Version:
66 lines 1.86 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.KitAuthApis = void 0; exports.KitAuthApis = { Login: { method: 'POST', route: '/api/auth-sdk/v1/login', description: 'Login', parameters: [ { name: 'bodyData', type: 'object', in: 'body', schema: { type: 'object', required: ['email', 'password'], properties: { email: { type: 'string', example: 'admin@example.com', }, password: { type: 'string', example: 'admin', }, }, }, }, ], }, Logout: { method: 'GET', route: '/api/auth-sdk/v1/logout', description: 'Logout', }, RedirectLogin: { method: 'GET', route: '/api-302/auth-sdk/v1/login', description: 'Login (302)', }, RedirectLogout: { method: 'GET', route: '/api-302/auth-sdk/v1/logout', description: 'Logout (302)', }, RedirectHandleSSO: { method: 'GET', route: '/api-302/auth-sdk/v1/handle-sso', description: 'AuthorizationCode handler (302)', parameters: [ { name: 'code', type: 'string', in: 'query', description: 'AuthorizationCode', }, { name: 'state', type: 'string', in: 'query', description: 'State', }, ], }, }; //# sourceMappingURL=KitAuthApis.js.map