I have implemented okta authentication for angular 7 app. The flow is as follows:
- User lands on landing page clicks login button
- User is redirected to okta login
- In okta we have a flag which checks if user is new or not called "newUser"
- After login okta has to check the flag value and if true route to dashboard page if false then to form page.
How can okta handle this redirection?
You could create your own callback component and map your callback route to it instead of Okta's. The default callback component is here. The code in it is: