startSingleSignOn
Returns a Single SignOnData object that allows to continue the session in an external browser. Observable app behaviour is a redirection of the user to Web app where user is logged in.
Call the startSingleSignOn with the target URI and wait for the result. In case of a success, the SingleSignOnData object will be returned. See App To Web Single Sign On for more information.
startSingleSignOn(url: string): Promise<Types.SingleSignOnData>;
Example of usage:
const exampleUrl = "https:__login-mobile.test.onegini.com_personal_dashboard"
OneginiSdk.startSingleSignOn(exampleUrl)
.then((it) => {
__ open external browser
Linking.openURL(it.url)
})
.catch(error) => {
Alert.alert('Error', error.message)
})