Overview

Fetches the user details for the current session or a specified user.
  • Retrieves user details from the Turnkey API using the provided userId and organizationId, or defaults to those from the active session.
  • If no userId is provided, the userId from the current session is used.
  • If no organizationId is provided, the organizationId from the current session is used.
  • Optionally allows stamping the request with a specific stamper (StamperType.Passkey, StamperType.ApiKey, or StamperType.Wallet).
  • Ensures that an active session exists before making the request.

Package: core

Defined in: core.ts:2394

Parameters

params
object

Response

A successful response returns the following fields:
returns
v1User
required
A promise that resolves to a v1User object containing the user details.