getCurrentUser

context.getCurrentUser() - Retrieve current user data.

Return value - Promise that resolves to an object with current user data

An example of the returned object:

{
  "id": 1,
  "uid": "438c9d13-26df-491c-bdab-524683aadee4",
  "username": "admin",
  "full_name": "Johnny Doe",
  "avatar_initials_url": "...",
  "avatar_uploaded_url": null,
  "avatar_type": 2 // 1 - gravatar, 2 - initials, 3 - uploaded
}
logo
Kaiten
If you have any questions or need help with integration feel free to write us at support@kaiten.io