So I assume you have added auth and pushed it to your backend already. After this if you want to use the built in web UI you need to setup the domain prefix. It needs to be unique within the AWS region so you may need to get creative. You could also use custom domain as well of course.
Configuring domain prefix or custom domain |
Next you want to make sure your app clients are setup correctly. Amplify should have made you couple of app clients already one for web and one for apps. Take a look at the below images for the correct configuration. I made these with requiring unique email only. If you are using phone as well, just check that off on both.
For web the callback and signout URLs should be something valid in your domain, if you are doing mostly local dev you can put in the localhost entries as shown below, they don't need to be valid initially to get basic things working.
Web client configuration |
For the mobile app(s) you need to put in the app URI(s) instead.
App client configuration |
Replace the [PREFIX] with your chosen one and [CLIENT_ID] with the web client id after that you should get a login screen like this:
You should be able to sign up and login with this interface. Congratulations you have a working Cognito Integration.