Skip to content

(gen2-migration) generate command creates non compiling social auth providers configuration #14521

@iliapolo

Description

@iliapolo

How did you install the Amplify CLI?

npm install --no-save @aws-amplify/cli-internal-gen2-migration-experimental-alpha

If applicable, what version of Node.js are you using?

No response

Amplify CLI Version

0.6.0

What operating system are you using?

Mac

Did you make any manual changes to the cloud resources managed by Amplify? Please describe the changes made.

No

Describe the bug

When a Gen1 app is configured with a social auth provider, we generate:

const userPoolClient = userPool.addClient("NativeAppClient", {
  ...,
  flows: ["code"],
  ...,
});

The flow property causes a compilation error:

Object literal may only specify known properties, and 'flows' does not exist in type 'UserPoolClientOptions'

Expected behavior

Not sure. We definitely need to remove the property but I don't know if we need to replace it with something.

Reproduction steps

Follow the media-vault app migration guide.

Project Identifier

No response

Log output

Details
# Put your logs below this line


Additional information

No response

Before submitting, please confirm:

  • I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.
  • I have removed any sensitive information from my code snippets and submission.

Metadata

Metadata

Assignees

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions