sync
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
update Token
if true, the SDK will generate and set a new token in the token property
Throws
Sync the SDK state without updating the token value.