Working Auth0 on site
This commit is contained in:
10
site/src/components/LoginButton.jsx
Normal file
10
site/src/components/LoginButton.jsx
Normal file
@@ -0,0 +1,10 @@
|
||||
import React from "react";
|
||||
import { useAuth0 } from "@auth0/auth0-react";
|
||||
|
||||
const LoginButton = () => {
|
||||
const { loginWithRedirect } = useAuth0();
|
||||
|
||||
return <button onClick={() => loginWithRedirect()}>Log In</button>;
|
||||
};
|
||||
|
||||
export default LoginButton;
|
||||
Reference in New Issue
Block a user