DEV Community

Discussion on: Using Amplify CLI for adding Auth to your Hasura GraphQL engine

Collapse
 
callmekatootie profile image
Mithun Kamath

A better trigger would be the Post Confirmation trigger instead of the Pre sign-up one. The latter wouldn't be useful if the user creation fails in Cognito but the former one guarantees that the user exists in Cognito BEFORE they can be created in the database.

Collapse
 
vladimirnovick profile image
Vladimir Novick

That's a good suggestion. I will make sure to try it out. Thanks!