whoami
Retrieves the current user or fetches the user information if not already available.
Import
import { BaseSignerClient } from "@account-kit/signer";
Parameters
orgId
string
optional organization ID, defaults to the user's organization ID
idToken
string
an OIDC ID token containing additional user information
Returns
Promise<User>
A promise that resolves to the user object