handleRedirectCallback invalid state

Thanks for sharing that with the rest of community!