I’m trying to handle a redirect based on information retrieved from the user object in my React App. So I have created a rule that defines if a users is a first-time login or not. Based on the information I want to redirect users to different pages.
My problem is that the user object hasn’t been defined once the onRedirectCallback is running, hence I can’t determine if it’s a first-time user or not.
Is there any other way I can approach this?