Add support for xhr requests during sign in