Use auth0 jwt in api
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user