hasAccessRight
Check if your application has been granted access rights or not in EMOTIV Launcher.
Any application that connects to Cortex must request approval from the user through EMOTIV Launcher. See requestAccess for details.
Parameters
Name | Type | Required | Description |
clientId |
| yes | The client id of your Cortex application |
clientSecret |
| yes | The client secret of your Cortex application |
Result
The result is an object containing a boolean value "accessGranted" and a message.
Name | Type | Description |
accessGranted |
| True, if the user has already approved your application False, if the user declined your application, or didn't approve it yet |
message |
|
If accessGranted is false, then your application should call requestAccess If accessGranted is true, then no action is required
Examples
Last updated