Login after 30 minutes takes to okta console instead of application

I am using /authorize endpoint to get okta login page. With that successfully I am able to get okta login page. If I login immediately its logging in properly to my application. If i leave like for 30 minutes in login page and then enter credentials to login, then its taking me to okta console instead of my application.

Not sure why it is happening and how to avoid this? Please help.

That’s interesting, and looks like a bug to me

its possible you’re running into issues with the okta_key expiring (it has a lifetime of 15 minutes), which is used during SP-initiated login flows.