sluijs
sluijs

Reputation: 4217

Integrate existing AWS Cognito user pool into iOS project with Amplify

I am trying to add AWS Cognito to my iOS application using AWS Amplify. The docs suggest to use amplify add auth on the CLI, but this does not seem to work with an existing User Pool (i.e. you have to create a new one). Is it possible to integrate AWS Cognito into my iOS (Swift) project using an existing User Pool?

Upvotes: 10

Views: 3779

Answers (2)

morgler
morgler

Reputation: 1809

Update: Since 2020 Amplify allows you to use existing User Pools (yeah!). Just run:

amplify import auth

Source: https://aws.amazon.com/de/about-aws/whats-new/2020/10/use-existing-cognito-user-pools-identity-pools-for-amplify-project/

Upvotes: 5

Richard
Richard

Reputation: 1780

Amplify CLI doesn't support existing resources at the moment but you can manually edit your awsconfiguration.json to include the User Pool that is already present as outlined here.

Upvotes: 8

Related Questions