Last active
October 14, 2022 10:50
-
-
Save furkanaydgn/0b84fc22df3e3156b1a25fc1f32e2148 to your computer and use it in GitHub Desktop.
accountSignOut()
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
async function accountSignOut() { | |
HMSAccount.signOut().then(function () { | |
if (confirm('HuaweiId Authorization will be also deleted!')) { | |
HMSAccount.cancelAuthorization(); | |
window.location = "login.html"; | |
} | |
}).catch(function () { | |
alert('signOut -> Error : ' + JSON.stringify(ex)); | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment