Thanks for your reply @gualter, I’ve submitted another post regarding the second question and found the solution to be the same as yours, location.reload(). Regarding the first question, I can see token request is being done with status code 200 when logging in. I then deleted the nf_jwt token in cookies and did a refresh and did not see any more token request being sent. I’m assuming this is the cause as to why my session’s token is not being refreshed causing the infinite loop?
For context, most of my pages have the netlify-identity-widget script, and due to this issue (that I’ve faced months ago), we’ve implemented a token refresh code on our own. We’d like to get rid of our token refresh if Netlify’s Identity Widget can in fact refresh on its own without redirecting anywhere, but until then I guess we’ll be refreshing the token ourselves.