title: AWS Amplify: AWSCognitoAuthPlugin Unable to decode configuration
body: <p>Go easy on me please. I'm not familiar with Swift and AWS. I'm trying to use AWS Authentication for user login. Using AWSCognitoAuthPlugin, I get this error:</p>
  <pre><code>An error occurred setting up Amplify: PluginError: Unable to decode configuration
  Recovery suggestion: Make sure the plugin configuration is JSONValue
  
  </code></pre>
  <p>What I have on my Swift file is very generic, following the AWS guide to get set up. I have no UI for the login as of now. I'm seeing the error via log.</p>
  <p>Here's my code:</p>
  <pre><code>import SwiftUI
  import Amplify
  import AWSAPIPlugin
  import AWSDataStorePlugin
  import AWSCognitoAuthPlugin
  
  
  class AppDelegate: NSObject, UIApplicationDelegate {
      func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey : Any]? = nil) -&gt; Bool {
          do {
              Amplify.Logging.logLevel = .verbose
              try Amplify.add(plugin: AWSCognitoAuthPlugin())
              try Amplify.configure()
              print(&quot;Amplify configured with auth plugin&quot;)
          } catch {
              print(&quot;An error occurred setting up Amplify: \(error)&quot;)
          }
          return true
      }
  }
  
  @main
  struct MyAmplifyAppApp: App {
      @UIApplicationDelegateAdaptor(AppDelegate.self) var appDelegate
  
      var body: some Scene {
          WindowGroup {
              ContentView()
          }
      }
  }
  
  
  </code></pre>
  <p>I'm not using cocoa pods because that causes the import statement for amplify to not work. I'm following this guide from AWS:
  <a href="https://docs.amplify.aws/lib/auth/getting-started/q/platform/ios#install-amplify-libraries" rel="nofollow noreferrer">https://docs.amplify.aws/lib/auth/getting-started/q/platform/ios#install-amplify-libraries</a></p>
  <p>Stuck at <strong>Initialize Amplify Auth</strong> section last step.</p>