Skip to Content

CustomerSessionResource

A synthetic customer has no session: the client sends its sandbox secret, and is authenticated from the start. Changing or clearing the session ends every request and stream of the old one.

Accessors

current

Get Signature

get current(): | { accessToken: string; customerId: string; projectId?: string; refreshToken: string; sandboxMode: boolean; } | null;

Always null for a synthetic customer.


state

Get Signature

get state(): CustomerAuthState;

signed_out, authenticated, or the reason the customer’s access ended.

Methods

Last updated on