Lakshitha Samod
Lakshitha Samod

Reputation: 381

@auth directive with 'userPools' provider found, but the project has no Cognito User Pools authentication provider configured

When I am trying to do "amplify push" This error message shows in my ide console.

× An error occurred when pushing the resources to the cloud @auth directive with 'userPools' provider found, but the project has no Cognito User Pools authentication provider configured.

Can someone help me with this matter.

Upvotes: 5

Views: 3740

Answers (1)

live-love
live-love

Reputation: 52366

You need to run:

amplify update api

? Please select from one of the below mentioned services: GraphQL
? Select from the options below Walkthrough all configurations
? 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 No, I am done.

Then run:

amplify push

Upvotes: 14

Related Questions