Good evening, Im developing a web app in react where i wanted to use oidc-client-js to make authentication. However,when i run this code below:
const userManager = new UserManager({
authority: "https://accounts.google.com/.well-known/openid-configuration",
client_id: "*myclientid*",
redirect_uri: "http://localhost:3000/projects",
});
const loginUser = (_) => {
userManager
.signinRedirectCallback()
.then((user) => {
alert(user);
})
.catch((error) => {
alert(error);
});
};
I get the Error: No state in response.
After some searching on this error i already tried to put the response_mode:'query' on the UserManager object but it didnt work out.
Thanks in advance.