Skip to contents

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 HUGGING_FACE_HUB_TOKEN environment variable.

Value

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

Examples

if (FALSE) { # \dontrun{
# Check current user
hf_whoami()
} # }