Use auth0 jwt in api

This commit is contained in:
2021-09-28 22:01:16 -05:00
parent 8855709a34
commit 737be09b5f
5 changed files with 37 additions and 38 deletions

View File

@@ -7,19 +7,19 @@ 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>
<Auth0Provider
domain="dev-b-bgocbi.us.auth0.com"
clientId="c5A08v815qx3ySjffHbaUc5b5MPWhRad"
redirectUri={window.location.origin}
audience="https://1t8da6s66e.execute-api.us-east-1.amazonaws.com/"
scope="read:stuff"
>
<LoginButton />
<LogoutButton />
<Profile />
<ProfileFromApi />
</Auth0Provider>
);
};
export default AuthTest;
export default AuthTest;