I have successfully integrated Okta authentication into my Angular 7 application. The authentication flow is outlined below:
- User visits the landing page and clicks on the login button
- User is then redirected to the Okta login page
- Within Okta, there is a flag called "newUser" which determines if the user is new or not
- After successful login, Okta needs to check the value of the flag and redirect the user to either the dashboard page if true, or to the form page if false.
How can Okta manage this redirection process effectively?