lawmicha / amplify1413

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Sample app for aws-amplify/amplify-swift#1413

Set up

amplify add api


? Please select from one of the below mentioned services: GraphQL
? Provide API name: amplify1413
? Choose the default authorization type for the API Amazon Cognito User Pool
Use a Cognito user pool configured as a part of this project.
? Do you want to configure advanced settings for the GraphQL API Yes, I want to make some additional changes.
? Configure additional auth types? Yes
? Choose the additional authorization types you want to configure for the API IAM
? Enable conflict detection? No
? Do you have an annotated GraphQL schema? Yes
? Provide your schema file path: schema.graphql

  1. amplify push

  2. (Optional - can skip this step since the models should already be generated if using the sample project) amplify codegen models

  3. pod install

  4. Create the user via AWS CLI

aws cognito-idp admin-create-user --user-pool-id [POOL_ID] --username [USERNAME]
aws cognito-idp admin-set-user-password --user-pool-id [POOL_ID] --username [USERNAME] --password [PASSWORD] --permanent

About


Languages

Language:Swift 97.5%Language:Ruby 2.5%