After your application is successfully connected to the Cortex service, you must go through the authentication procedure.
First, you should call getUserLogin to check if the user has already logged in though EMOTIV App. Then, you must call requestAccess to ask the user to approve your application.
Finally, call authorize to generate a Cortex token or you can reuse a token that you previously got from this method, if it is not expired.
New in 2.0: There is no login or logout API anymore in Cortex 2.0; instead, users are required to login through the EMOTIV App.
New in 2.0: Any third party application that connects to Cortex 2.0 must request approval from the user through EMOTIV App.