> ## Documentation Index
> Fetch the complete documentation index at: https://docs.glider.fi/llms.txt
> Use this file to discover all available pages before exploring further.

# tRPC Current User Identity

> Authenticated browser identity backed by the canonical db-v2 user UUID

The `identity.getCurrent` procedure exposes the canonical Glider user identity
for authenticated first-party browser clients.

## Contract

* Auth: wallet session required
* Rate limit: standard authenticated wallet-session tier
* Returns: `{ "userId": "<db-v2.users.id UUID>" }`
* Never falls back to a wallet address, Privy provider ID, or legacy user ID

The procedure validates that the unified session contains a UUID-shaped
`db-v2.users.id`. A session without that canonical identity fails closed with
an internal error so downstream observability and analytics cannot silently
fragment one person across provider or wallet identifiers.

## Intended Use

`apps/webapp-v2` uses this value as the primary user identifier for first-party
observability and product analytics. Provider IDs and wallet addresses may be
attached as explicitly secondary metadata at provider-specific boundaries,
but they are never accepted as the primary user ID.
