Skip to main content
Version: 5.9.6

SignOut

public BackendReturnObject SignOut();
public BackendReturnObject SignOut(string reason);

Parameter

ValueTypeDescription
reasonstringReason of withdrawal

Description

The user's membership is withdrawn from the server.
BACKND's membership withdrawal provides a 7-day grace period. When the user attempts to log in with the same ID during this period, the withdrawal is canceled automatically and the ID can be used again.
If the user wants to be withdrawn immediately, you may withdraw that user from BACKND Console immediately.
Upon calling the membership withdrawal method, the access token and the refresh token stored in the device are deleted.
After proceeding with membership withdrawal, if the automatic login(Backend.BMember.LoginWithTheBackendToken()) is run using the token without exiting the game, login is possible as the pre-loaded login data is used, and the membership withdrawal process is canceled.
If re-login is not the desired option, exit the game and execute it again.

Example

Synchronous

Backend.BMember.SignOut("It's not fun to play.");

Asynchronous

Backend.BMember.SignOut("It's not fun to play", (callback) => {
// Post-process
});

SendQueue

SendQueue.Enqueue(Backend.BMember.SignOut, "It's not fun to play", (callback) => {
// Post-process
});

Return cases

Success cases

When the membership withdrawal is successful
statusCode : 204