We currently utilize a customized login page to implement home realm discovery using an external service.
However, we’ve found that the customized page and therefore the HRD logic is being run on some “non-login” pages.
User security image selection, mfa enroll, to name a few.
We’d like to implement a check to see if the user is already signed in and to exit the logic pre-emptively.
From playing around in the console, I’ve found that oktaData.requestContext.user is defined when the user is already signed in.
Just wondering if there is a better way to check if the user is already signed in?