Working Auth0 on site
This commit is contained in:
25
site/src/components/AuthTest.jsx
Normal file
25
site/src/components/AuthTest.jsx
Normal file
@@ -0,0 +1,25 @@
|
||||
import React from "react";
|
||||
import { Auth0Provider } from "@auth0/auth0-react";
|
||||
import LoginButton from "./LoginButton";
|
||||
import LogoutButton from "./LogoutButton";
|
||||
import Profile from "./Profile";
|
||||
import ProfileFromApi from "./ProfileFromApi";
|
||||
|
||||
const AuthTest = () => {
|
||||
return (
|
||||
<Auth0Provider
|
||||
domain="dev-b-bgocbi.us.auth0.com"
|
||||
clientId="c5A08v815qx3ySjffHbaUc5b5MPWhRad"
|
||||
redirectUri={window.location.origin}
|
||||
audience="https://dev-b-bgocbi.us.auth0.com/api/v2/"
|
||||
scope="read:current_user update:current_user_metadata"
|
||||
>
|
||||
<LoginButton />
|
||||
<LogoutButton />
|
||||
<Profile />
|
||||
<ProfileFromApi />
|
||||
</Auth0Provider>
|
||||
);
|
||||
};
|
||||
|
||||
export default AuthTest;
|
||||
Reference in New Issue
Block a user