Skip to content

Commit

Permalink
read aar from localstorage
Browse files Browse the repository at this point in the history
  • Loading branch information
fbianchicodermine committed Feb 18, 2025
1 parent 3e557f8 commit 7ebe8cd
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,6 @@ const SessionGuardRender = () => {
*/
const SessionGuard = () => {
const location = useLocation();
const [params] = useSearchParams();
const isInitialized = useAppSelector((state: RootState) => state.appState.isInitialized);
const {
sessionToken,
Expand Down Expand Up @@ -174,7 +173,7 @@ const SessionGuard = () => {
// ----------------------
const spidToken = getTokenParam();
if (spidToken) {
const aar = params.get(AppRouteParams.AAR) || undefined;
const aar = localStorage.getItem(AppRouteParams.AAR) || undefined;
AppResponsePublisher.error.subscribe('exchangeToken', manageUnforbiddenError);
await dispatch(exchangeToken({ spidToken, aar }));
}
Expand Down

0 comments on commit 7ebe8cd

Please sign in to comment.