Handkit.Profile.get_permissions

You're seeing just the function get_permissions, go back to Handkit.Profile module for more information.

Specs

get_permissions(Handkit.Connect.t()) :: {:ok, [String.t()]} | {:error, any()}

Returns a list of permissions for the currently authenticated user.

Example

iex> Handkit.Profile.get_permissions(client)
{:ok, [
  "USER_PUBLIC_PROFILE",
  "USER_PRIVATE_PROFILE",
  "DECRYPT",
  "FRIENDS",
  "PAY",
  "SIGN_DATA"
]}