-
Notifications
You must be signed in to change notification settings - Fork 26
Users
Branko Conjic edited this page Feb 8, 2024
·
2 revisions
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;
}