[#32] changed how userinfo is filled

This commit is contained in:
Camille Moussu
2025-08-20 10:14:47 +02:00
committed by Benoit TELLIER
parent 290c7f301b
commit b9d2a16984
4 changed files with 23 additions and 13 deletions
+2 -2
View File
@@ -2,7 +2,7 @@ import { useEffect, useRef } from "react";
import { Callback } from "./oidcAuth";
import { useAppDispatch, useAppSelector } from "../../app/hooks";
import { push } from "redux-first-history";
import { getOpenPaasUserIdAsync, setTokens, setUserData } from "./userSlice";
import { getOpenPaasUserDataAsync, setTokens, setUserData } from "./userSlice";
import { Loading } from "../../components/Loading/Loading";
import { getCalendarsListAsync } from "../Calendars/CalendarSlice";
@@ -22,7 +22,7 @@ export function CallbackResume() {
const data = await Callback(saved?.code_verifier, saved?.state);
dispatch(setUserData(data?.userinfo));
dispatch(setTokens(data?.tokenSet));
dispatch(getOpenPaasUserIdAsync());
dispatch(getOpenPaasUserDataAsync());
dispatch(getCalendarsListAsync());
sessionStorage.removeItem("redirectState");