We are using ZITADEL as the OIDC provider. The flow is standard Authorization Code Flow. After login, the user is redirected to our redirect_uri as expected. However, immediately after the initial redirect, the user is redirected again to the same URI. This causes a second page load or duplicate processing on our end. Due to which we are getting error on requesting for token. Since, token is requested twice.
Questions:
1. Is this double redirect behavior expected under any circumstances?
2. Could there be a misconfiguration in our OIDC client or project settings in ZITADEL?
3. Are there known issues or logs we can look at to troubleshoot this further?