Skip to content

Interface: PrivateClientOptions ​

How a PrivateClient is built: transport, session store and session-expiry hook.

Extended by ​

Properties ​

PropertyModifierTypeDescription
onSessionExpired?readonly(error) => Promise<void>Called when a request is rejected with login_required (the session expired). It should re-authenticate. The rejected request is then repeated once. Several requests failing together share one call, and requests the hook itself makes never trigger it again.
session?readonlySessionData-
store?readonlySessionStore-
transport?readonlyHttpTransport-

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