StaticdisconnectStaticgetStaticisStaticsavePersists the connection data returned from MobileWallet.parseConnectCallback.
The callback data containing the public key
StaticuseSets a custom storage backend. If not called, defaults to localStorage.
An object implementing getItem, setItem, and removeItem.
Methods may return values directly or as Promises.
Manages persistence of the mobile wallet connection across page navigations.
Since mobile wallet interaction happens via deep links with redirects, the wallet instance doesn't survive page transitions. This class provides a simple API to persist and retrieve the public key returned from the connect callback.
All methods return Promises, so both sync and async storage backends are supported transparently.
Example
Example