as per your description, I think you are reaching till _loginPostRedirect() and from this, you can are getting redirect URL after login so check .