Handle Events
Handle a Successful Login Event
Logging in takes place without a page fresh, so you need a way to handle a successful login event. To do so, set a callback as the first and only argument of onLogin
:
For more information about loging in a user, see the authentication section
Handle a Login Error Event
Handle a login error event:
Handle a Successful Connection Event
Execute a callback function when a successful connection to the API is established.
Handle a Connection Error Event
Execute a callback function when there is an error connecting to the API.