Authentication and user info (/api/whoami-v2).
Summary
Functions
Returns the authenticated user/org/app info.
Functions
@spec who_am_i(keyword()) :: {:ok, map()} | {:error, Exception.t()}
Returns the authenticated user/org/app info.
Example
{:ok, info} = HuggingfaceClient.Hub.Auth.who_am_i(access_token: "hf_...")
# info["type"] => "user" | "org" | "app"