How to use Okta Registration with redirect_uri

I was using signInWIthCredentials , method to login, Now i need to use Okta registration widget , once logged in it should be redirect to given post registration URL,

How can we achieve this functional approach ?

Are you not seeing this redirection automatically occur after registering a user via the widget in the middle of an application login flow?