You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Otherwise we call this function and make a request to our server with the token and confirm that the user is in our DB
export const handleResponseMicrosoft = (err, data: { accessToken: string }) => {
Store.dispatch(toggleLoadingGoogleMicrosoft(true));
if (!err) {
// If err is falsy we make the resquest to the server
// and if the response is OK we set the required states to give the user access to the page
} else {
handleFailure(err);
}
};
When i try to login the popup from MS start looping and the page make an infinity number of request to openid-configuration.
Here is the button with a child component just to have a custom style and icon
This is the callBack
Ifi the user close the popup we handle that like this (we are using redux and the Store.dispatch is needed to call any action)
Otherwise we call this function and make a request to our server with the token and confirm that the user is in our DB
Video evidence of the bug
Infinity requests
2021-12-28.13-53-44_infinity_resquests.mp4
Infinity popup
2021-12-28.13-44-34_popup_loop.mp4
dependencies
The text was updated successfully, but these errors were encountered: