Hello , i have a bouton in my react app with .NetCore Backend that used to change environment from dev to preprod . the problem is that always redirect me to the environment that genesys user is connected in my browser .
for exemple if i'm connected to genesys cloud in Edge browser with the organisation of Preprod and i open my reactApp in dev organisation . it will open by default the prepord organisation in my react app.
here is the code :if (err.response?.status === 401) {
const code_verifier = createCodeVerifier(x);
const expires = new Date()
expires.setTime(expires.getTime() + (Y))
setCookie('code_verifier', code_verifier);
createCodeChallenge(code_verifier)?.then((code_challenge: any) => {
const genesysCloudLoginUri = `https://login.${environment}/oauth/authorize?` +
`org=${org}&response_type=code&client_id=${clientId}&redirect_uri=${redirectUri}&code_challenge=${code_challenge}&code_challenge_method=S256`;
window.location.href = genesysCloudLoginUri;
})