mirror of
https://github.com/Kingsrook/qqq-frontend-material-dashboard.git
synced 2025-07-18 05:10:45 +00:00
Checkpoint to get cypress working - auth-type from backend, less hard-coded auth0, improvements on query screen (less redundant fetches)
This commit is contained in:
@ -19,11 +19,10 @@
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
import {Auth0Provider, useAuth0} from "@auth0/auth0-react";
|
||||
import {useAuth0} from "@auth0/auth0-react";
|
||||
import React, {useEffect} from "react";
|
||||
import {useCookies} from "react-cookie";
|
||||
import {SESSION_ID_COOKIE_NAME} from "App";
|
||||
import {AUTH0_CLIENT_ID, AUTH0_DOMAIN} from "index";
|
||||
|
||||
interface Props
|
||||
{
|
||||
@ -44,11 +43,7 @@ function HandleAuthorizationError({errorMessage}: Props)
|
||||
});
|
||||
|
||||
return (
|
||||
<Auth0Provider domain={AUTH0_DOMAIN} clientId={AUTH0_CLIENT_ID}>
|
||||
<div>
|
||||
<div>{errorMessage}</div>
|
||||
</div>
|
||||
</Auth0Provider>
|
||||
<div>{errorMessage}</div>
|
||||
);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user