oktaAuth with React, page loading stuck if user is logged in and enters 'login/callback' to address console

Viewed 20

I'm new to okta and trying to migrate from react router v5 to v6. All seems works fine until user being logged in and replace http://localhost:3000/admin/publishers with http://localhost:3000/login/callback. Then page is stuck on empty stage, with no errors. Login, logout, page refresh and navigation - all works, except this single scenario with manual address changing. Also according to logging messages in console, app don't go anywhere and stuck immediately on routes inside App.tsx (if any)

I'm using "@okta/okta-auth-js": "^6.8.0" "@okta/okta-react": "^6.6.0" "react-router-dom": "^6.3.0"

This is my code:

App.tsx

App.tsx

Shell.tsx

Shell.tsx

Network console

Network console

Thank a lot if anyone can advice with this.

0 Answers
Related