Skip to content

Function: getCurrentUser() ​

ts
function getCurrentUser(client): Promise<Record<string, unknown>>;

Fetches the logged-in account's own profile. Requires a logged-in session. It is the simplest way to confirm the captured authorization is accepted.

Parameters ​

ParameterType
clientPrivateClient

Returns ​

Promise<Record<string, unknown>>

MIT License. Not affiliated with, endorsed or sponsored by Meta or Instagram.