Redirecting the user
The userRedirectUrl field is used to redirect the user. This field is received in the successful process creation response when making the Process Creation request. Here you will find the 2 ways to manage the user experience, using redirects, in your Web application:
1) Using Redirect:
It is recommended to follow these steps:
In your common flow (which includes the by Unico Registration), you will redirect the client to the link generated through the API.
After that, the client within the platform carries out the necessary procedures to continue the flow.
When completed, they are redirected to your page (using the redirectUrl provided during the process creation).
(2) Using window.open():
window.open():The window.open() option consists of opening a new tab in the user's browser so that they can complete the process. At the end, this tab is closed and redirected to your application.
For this, it is recommended to:
Follow the public documentation on this, which can be found here.
Monitor for a URL change (to the
redirectUrl) and then close the tab usingwindow.close().
Last updated
Was this helpful?