Skip to Content

CustomerSessionStore

type CustomerSessionStore = object;

The client reads the store once when it is created. subscribe reports changes made elsewhere, such as in another tab; the client adopts them without writing them back.

Methods

clear()

clear(scope): void;

Parameters

scope

CustomerSessionStoreScope


read()

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

Parameters

scope

CustomerSessionStoreScope


subscribe()?

subscribe?(onChange, scope): () => void;

Parameters

onChange

(session) => void

scope

CustomerSessionStoreScope


write()

write(session, scope): void;

Parameters

session
accessToken

string = ...

customerId

string = ...

projectId?

string = ...

refreshToken

string = ...

sandboxMode

boolean = ...

scope

CustomerSessionStoreScope

Last updated on