Authentication API

Request example

JWT Token could be generated by GET /rest/auth endpoint

Bearer token could be created using /rest/token endpoint

{
  "type": "auth",
  "payload": "<JWT or Bearer Token>"
}

Response example

{
  "success": true,
  "type": "auth",
  "message": "success",
  "payload": {
    "uuid": "ac3f7d7d-aac1-4dd4-9560-93206745e138",
    "ip": "::ffff:172.16.1.1",
    "user": {
      "created_on": "2021-04-23T10:05:53.463Z",
      "modified_on": "2021-04-26T05:39:08.762Z",
      "uuid": "7b8f87f1-8988-4e83-9608-3285b448a05f",
      "email": "user.name@gmail.com",
      "phone_number": null,
      "first_name": "User",
      "last_name": "Name",
      "dob": null,
      "gmail_user_id": null,
      "facebook_user_id": null,
      "apple_user_id": null,
      "wechat_user_id": null,
      "role": "User",
      "gender": null,
      "deleted_on": null
    },
    "account": {
      "created_on": "2021-04-23T10:05:53.463Z",
      "modified_on": "2021-04-23T10:05:53.463Z",
      "uuid": "4c1645f4-8be8-4f6d-a4ff-f0ac33ed6ada",
      "email": "user.name@gmail.com",
      "name": "User Name",
      "level": "Level0",
      "deleted_on": null,
      "balance": 100
    },
  }
}

Last updated