sync

open suspend override fun sync(updateToken: Boolean): State

Sync the local SDK state with the backend. Should be called whenever appropriate to have the SDK in a synced state.

Return

the state of the sdk after sync

Parameters

updateToken

if true, the SDK will generate and set a new token in the token property

Throws