# `HuggingfaceClient.Hub.Auth`
[🔗](https://github.com/huggingface/huggingface_client/blob/v0.1.0/lib/huggingface_client/hub/auth.ex#L1)

Authentication and user info (`/api/whoami-v2`).

# `who_am_i`

```elixir
@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"

---

*Consult [api-reference.md](api-reference.md) for complete listing*
