Redirect Callback Bug

Hi, I am using linkSocial and want to handle any errors on my custom page rather than on the default api error page.

I discovered that in the parseState errorURL is being set in case it's not in the state object.

This leads to the error url of redirectOnError always being this default error url see here.

I could create a PR to fix this, but I am not quite familiar whether this would introduce new unwanted behaviours.

---

TLDR: The onAPIError errorURL is being overwritten by parseState
Was this page helpful?