onSessionTokenRequired method
App needs to fetch a new token.
Pass on the new (retrieved) token to SDK via success(NEW_TOKEN)
or fail()
if fetch failed.
In case when app decides not to refresh the session for this user,
they should call success(null)
.
Implementation
@required
void onSessionTokenRequired(Function(String) successCb, Function failCb) {}