Skip to content

AWS Cognito

Notes

  • Trying to use aws-amplify with Typescript
  • Issues with typescript definitions
  • Adding @types/node for aws-sdk. See if that will help aws-sdk-js#Usage with TypeScript
  • tsconfig
  • Result
  • npm install --save-dev @types/node
  • npm install aws-amplify

Resources

  • Auth Guide
  • Custom UI for Cognito with aws-amplify
  • AWS Documentation
  • tsconfig.json
    {
      "compilerOptions": {
        "target": "ESNext",
        "module": "ESNext",
        "jsx": "preserve",
        "noImplicitAny": false,
        "noImplicitThis": true,
        "allowJs": true,
        "pretty": true,
        "diagnostics": true,
        "moduleResolution": "node",
        "allowSyntheticDefaultImports": true,
        "experimentalDecorators": true,
        "emitDecoratorMetadata": true
      },
      "exclude": [
        "node_modules"
      ],
      "awesomeTypescriptLoaderOptions": {
        "useWebpackText": true,
        "useTranspileModule": true,
        "useBable": true,
        "useCache": true,
        "doTypeCheck": true,
        "forkChecker": true
      }
    }
    

Steps

Configure the client


Last update: March 9, 2018 10:24:07