logout

This method is to log out from Cortex. You can use the method getUserLogin to know if a user is already logged in or not.

Parameters

Name

Type

Required

Description

username

string

yes

The EMOTIV ID of the current user.

Result

The result is an object with these fields:

Name

Type

Description

username

string

The EMOTIV ID.

message

string

Example

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "logout",
  "params": {
    "username": "jon.snow"
  }
}

Last updated