Request an authentication token with email/password
Requests a token to the webcom server of the given context with the plain email/password method.
This function is asynchronous and returns immediately. Once the reply from the server is received, the main callback of the context will be called with the WC_AUTH_ON_AUTH_REPLY event, and a pointer to a struct wc_auth_info object as data.
- Parameters
-
ctx | the webcom context |
email | the email |
password | the password |
- Returns
- 1 on success, 0 on failure (e.g. out of memory)