27 lines
661 B
JavaScript
27 lines
661 B
JavaScript
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";
|
|
import config from "../config";
|
|
|
|
const AuthTest = () => {
|
|
return (
|
|
<Auth0Provider
|
|
domain={config.auth0.domain}
|
|
clientId={config.auth0.clientId}
|
|
redirectUri={window.location.origin}
|
|
audience={config.auth0.audience}
|
|
scope="read:stuff"
|
|
>
|
|
<LoginButton />
|
|
<LogoutButton />
|
|
<Profile />
|
|
<ProfileFromApi />
|
|
</Auth0Provider>
|
|
);
|
|
};
|
|
|
|
export default AuthTest;
|