@aws-amplify/amplify-category-auth
Version:
amplify-cli authentication plugin
13 lines (9 loc) • 520 B
text/typescript
import { AmplifySupportedService, CLIInputSchemaGenerator, TypeDef } from '@aws-amplify/amplify-cli-core';
const CognitoAuthTypeDef: TypeDef = {
typeName: 'CognitoCLIInputs',
service: AmplifySupportedService.COGNITO,
};
// Defines the type names and the paths to the TS files that define them
const authCategoryTypeDefs: TypeDef[] = [CognitoAuthTypeDef];
const schemaGenerator = new CLIInputSchemaGenerator(authCategoryTypeDefs);
schemaGenerator.generateJSONSchemas(); //convert CLI input data into json schemas.