If there is no bearertoken available, you need to get one, use this method to get a (new) bearertoken from
the system. This is also a POST request.
You need to send 2 properties to the server with the POST request:
| email |
Users emailaddress (must be unique) |
| password |
User password (will be hashed in the system) |
API URL
https://mbo-sd.nl/api/chat/register
Returns
status: true or false
message: message for the API
errors: array with error messages (empty array if status is true)
user-data: object with user information:
id: id of the user in the system
bearertoken: user secret to use in communications with the API
HINT: You can store the bearertoken in the localStorage of the user.