The purpose#
The purpose of the redirection URL is to redirect the user back to the original app screen or mobile browser URL to complete the authentication journey.Redirection URL is particularly useful if 'Login With Whatsapp' is implemented on a mobile web or mobile app interface.
During the Init API call, the redirection URL can be set by the business at run time. A unique secret token can also be generated and appended to the redirection URL or passed as a callback1 parameter value.On successful or failed verification, the user would be redirected back to the website or app interface from where the verification journey started.The website or app can use the callback parameter value received in the redirection URL to determine the login session and can map additional parameters received in the URL on successful verification. Parameters such as the user's verified number and the user's name as per WhatsApp can also be received.