amazon-archives / aws-amplify-serverless-plugin

Plugin for the Serverless Framework to output AWS Amplify configuration files.
Apache License 2.0
124 stars 30 forks source link

Update App Sync configuration key #48

Closed sfranusic closed 5 years ago

sfranusic commented 5 years ago

Description: The awsconfguration.json file that is generated has a key for App Sync that is named AuthType, but the App Sync client (AWSAppSyncClient.swift) pod is looking for a key called AuthMode. I believe this is also the case on Android.

The App Sync pod tries to set this property with:

self.authType = defaultAppSyncConfig["AuthMode"] as! String

which causes a runtime error unless the awsconfiguration.json file is modified to have its key be AuthMode.

sfranusic commented 5 years ago

Created a PR instead.