Skip to main content
Version: 5.11.6

Logout

public BackendReturnObject Logout();

Description

The user is logged out from the server.
When the user is logged out, the server conducts a task to delete BACKND access_token and refresh_token.
Therefore, the existing access_token and refresh_token cannot be used anymore.

  • To get new access_token and refresh_token, you must undergo the procedure of AuthorizeFederation/CustomSignUp/CustomLogin.

Example

Synchronous

Backend.BMember.Logout();

Asynchronous

Backend.BMember.Logout((callback) => {
// Post-process
});

SendQueue

SendQueue.Enqueue(Backend.BMember.Logout, (callback) => {
// Post-process
});

Return cases

Success cases

When the logout is successful
statusCode : 204