whoami

Retrieves the current user or fetches the user information if not already available.

Import

1import { 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

accessToken

string an access token which if provided will be added to the user

Returns

Promise<User> A promise that resolves to the user object