Ready to post? First, try searching for your answer.
I have made the user type as business user with credential prompt when the user accepts or declines it is redirected to the landing page I have given the saple flow of my implementation
export default function Login() {
const { loginWithRedirect } = useAuth0();
const handleLogin = async () => {
loginWithRedirect({
redirectUri: window.location.origin + â/dashboardâ,
audience:âhttps://sample-app.com/api/v2/â,
});
};
return (
<ArrowForwardIosSharpIcon
style={{width: 190, height: 75 }}
onClick={handleLogin}
/>
);
}