MoveAuthState
Last updated
Last updated
Returns the current SDK Authentication State.
MoveAuthState
unknown
The SDK authorization state when SDK is uninitialized.
is session-based, hence it expires and requires to be renewed. For simplicity, the MOVE SDK handles refreshing the token for the host app whenever it expires and passes the new MoveAuth when updated via authStateChangeListener
(Android / ) API callback.
In case the SDK fails to refresh authentication, it will trigger .expired
. The host app is expected to fetch a new token with the product's API Key and then call update(auth: MoveAuth)
( / ) API.
The host app is responsible for monitoring updates and handling its state updates by:
.expired
: Requesting new Auth using the product's API Key and then passing it to the SDK using API.
.valid(MoveAuth)
: Persisting the new provided by the SDK, so the app can pass this new next time it is initializing the SDK.
MoveAuthState related APIs
expired()
Latest expired and the SDK can't refresh it.
valid()
Authentication is valid. Latest provided.
getSDKAuthState
(Android / )
Gets the current .
setSDKAuthUpdatesListener (Android / )
Block to be invoked every time changes.