Retrieves the currently authenticated user.
import { type User, getAuthenticatedUser } from '@lemonsqueezy/lemonsqueezy.js'; const { error, data, statusCode } = await getAuthenticatedUser();
/** * Retrieve the authenticated user. * * @returns A user object. */ declare function getAuthenticatedUser(): Promise<FetchResponse<User>>;
{ statusCode: number | null; error: Error | null; data: User | null; }
Source ~ Type ~ Test
There was an error while loading. Please reload this page.