Can't redirect back to my app amplify signInWithWebUI

577 views Asked by At

I'm trying to implement AWS sign in with web UI on my app, followed the documentation and it's working fine but I can't redirect back to my app after sign in.

In my amplifyconfiguration.json :

"Auth": {
                "Default": {
                    "OAuth": {
                        "WebDomain": "xxxxxxxxxxxx",
                        "AppClientId": "xxxxxxxxxxxxx",
                        "SignInRedirectURI": "http://localhost:3000/",
                        "SignOutRedirectURI": "http://localhost:3000/",
                        "responseType": "code",
                        "Scopes": [
                            "phone",
                            "email",
                            "openid",
                            "profile",
                            "aws.cognito.signin.user.admin"
                        ]
                    },
                    "authenticationFlowType": "USER_SRP_AUTH"
                }
            }

When I change "SignInRedirectURI": "http://localhost:3000/" to "SignInRedirectURI": "myapp//" instead of the login page it shows this error:

enter image description here

Am I missing something?

1

There are 1 answers

1
Nayani Gaonkar On

You have to pull the amplify auth again or make changes in your awsconfiguration.json and amplifyconfiguration.json file to change the redirect URL.