How to avoid redirection to login page from logout?

0

I am using cognito for openID SSO layer, when I use Auth.signOut() from amplify it logs out the user but it wants me to add a redirect_uri , which is weird because for the logout end point it needs only client_id and logout_uri as it gets called when Auth.signOut is triggered.

App integration/ AWS amplify config

logout_uri : /logout

1 Answer
4

How about:

  1. Ensure logout_uri Matches Allowed Sign-Out URLs – Cognito requires that the logout_uri parameter matches one of the Allowed sign-out URLs configured in your app client settings.
  2. Use logout_uri Instead of redirect_uri – Cognito requires either a logout_uri or a redirect_uri parameter in the request.
EXPERT
answered a month ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions