0

how to implement logout functionality in remote hybrid app using logout button ? my button show alert message but not logout the app.

1 Answer 1

0

If you are using SalesforceSDK you can write custom method to logout

function logout(){

  var sfOAuthPlugin  = cordova.require("com.salesforce.plugin.oauth");
  sfOAuthPlugin.logout();
}

This method logouts current user.It will securly loggedout the user and flush the stored access and refresh token

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .