I am not able to redirect to a specific page in my application using auth enabled login button

So I working on this api based simple dashboard where I wanted to integrate auth0 login so I created a Navbar.js with login button on it which will redirect me to the main dashboard.js page but I am not able to redirect it bellow I am providing my code and auth0 configuration please help me.

import auth0 from ‘auth0-js’;
import React from ‘react’;

const webAuth = new auth0.WebAuth({
domain: ‘dev-vbqpkhjpanfkqp58.us.auth0.com’,
clientID: ‘whym3QejY7DzLSA8BeWsfB3vnTYNC7Xc’
});

const Navbar= () => {
const handleLoginClick = () => {
webAuth.authorize({
redirectUri: ‘http://localhost:3000/Dashboard’,
responseType: ‘code’
});
};

return (
Login
);0
};

export default Navbar;

Hello @rigvedraut123 and welcome to the community!

Is the login flow successful? Are you being redirected elsewhere?

Let us know!