BayunCoreSDK JavaScript Programming Guide
  • 1. Introduction
  • 2. Quick Start Guide for Beginners
  • 3. Getting Started
  • 4. Integrate Bayun SDK
  • 5. Authentication
    • 5.1 Register with Password
    • 5.2 Register without Password
    • 5.3 Login with Password
    • 5.4 Login without Password
    • 5.5 Logout
    • 5.6 Change Password
  • 6. BayunCoreSDK Operations
    • 6.1 Lock/Unlock Text
    • 6.2 Lock/Unlock File Text
    • 6.3 Lock/Unlock Binary Data
    • 6.4 Get Locking Key
  • 7. Groups
    • 7.1 Create Group
    • 7.2 Get My Groups
    • 7.3 Get Unjoined Public Groups
    • 7.4 Join Public Group
    • 7.5 Get Group By Id
    • 7.6 Add Group Member
    • 7.7 Add Group Members
    • 7.8 Remove Group Member
    • 7.9 Remove Group Members
    • 7.10 Remove Group Members Except List
    • 7.11 Leave Group
    • 7.12 Delete Group
  • 8. Bayun Errors
Powered by GitBook
On this page

Was this helpful?

  1. 5. Authentication

5.5 Logout

To logout user, use logout function. This function can be used at the time of logging out of app.

The function takes the following parameters :

  • sessionId : Unique SessionId which is received in the login/registration function response.

const sessionId = "<sessionId>";
bayunCore.logout(sessionId);
Previous5.4 Login without PasswordNext5.6 Change Password

Last updated 1 year ago

Was this helpful?