Unable to locate the login button on the auth0 universal login UI interface for redirecting it another page other than home page
import React from "react";
import { useAuth0 } from "@auth0/auth0-react";
import {useHistory} from 'react-router-dom';
const LoginButton = () => {
const { loginWithRedirect } = useAuth0();
let History = useHistory();
return (
<button
className="btn btn-primary btn-block"
onClick={() => loginWithRedirect(History.push('/otpview'),{screen_hint:"login"})}
>
Log In
</button>
);
};
export default LoginButton;
Above code will display the OTP page and immediately redirect to the universal login page