hf_whoami: Get Current Hugging Face User Information

View source: R/auth.R

hf_whoamiR Documentation

Get Current Hugging Face User Information

Description

Retrieve information about the currently authenticated user. Requires a valid Hugging Face token to be set.

Usage

hf_whoami(token = NULL)

Arguments

token

Character string containing your HF token. If NULL, uses the 'HF_TOKEN' environment variable, falling back to the legacy 'HUGGING_FACE_HUB_TOKEN'.

Value

A tibble with user, billing, organization, and token-scope metadata.

Examples

## Not run: 
# Check current user
hf_whoami()

## End(Not run)

huggingfaceR documentation built on Aug. 30, 2026, 1:06 a.m.