handleRegistrationCallback
Used to pass the redirect URI, recieved from the browser registration, to the SDK. See Registration with browser IdP for more information.
handleRegistrationCallback(uri: string)
| Property | Type | Description | 
|---|---|---|
| uri | string | Registration URI | 
Example
useEffect(() => {
    const handleOpenURL = (event: {url: string}) => {
      if (event.url.substring(0, event.url.indexOf(':')) === redirectUri) {
        OneWelcomeSdk.handleRegistrationCallback(event.url);
      }
    };
    const listener = Linking.addListener('url', handleOpenURL);
    return () => {
      if (listener) {
        listener.remove();
      }
    };
  }, [redirectUri]);