setAuthStateListener method
Set a block to be invoked every time SDK authorization state changes. Important:
- Hosting app must handle case
expired
by refetching a new token as SDK cannot update the given anymore. Returns stream: latest MoveAuthState. Invoked every time auth state changes.
Implementation
Stream<MoveAuthState> setAuthStateListener() async* {
yield* MovesdkPlatform.instance.setAuthStateListener();
}