auth & cache

This commit is contained in:
h z
2024-12-03 11:29:16 +00:00
parent b355b867a5
commit d035a781ae
9 changed files with 118 additions and 9 deletions

17
src/Callback.js Normal file
View File

@@ -0,0 +1,17 @@
import React, { useEffect } from "react";
import { UserManager } from "oidc-client-ts";
import {oidcConfig} from "./oicdConfig";
const Callback = () => {
useEffect(() => {
const userManager = new UserManager(oidcConfig);
userManager.signinRedirectCallback().then(() => {
window.location.href = "/";
});
}, []);
return <div>Logging in...</div>;
};
export default Callback;