Proper Okta authentication login flow with React-Admin

Hi all,

We want to use Okta as the way to authenticate users and we’re building the app using React-Admin which use react-router@6 so we can’t use @okta/okta-react package since it still use v5 at the moment.

A bit more context of our app:

  • There will be a logic controlled by React Admin, which redirects to Login page if user is not authenticated, e.g. token not present in localStorage (we can customize this logic, customize UI for Login page)

So basically, all we want is at Login page somehow trigger Okta login flow, then maintain the session through out the app. Can you point me the the proper way to authenticate?

Thanks