Skip to content

Instantly share code, notes, and snippets.

@furkanaydgn
Last active October 14, 2022 10:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save furkanaydgn/0b84fc22df3e3156b1a25fc1f32e2148 to your computer and use it in GitHub Desktop.
Save furkanaydgn/0b84fc22df3e3156b1a25fc1f32e2148 to your computer and use it in GitHub Desktop.
accountSignOut()
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