onSessionTokenRequired method

  1. @required
void onSessionTokenRequired(
  1. dynamic successCb(
    1. String
    ),
  2. Function failCb
)

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) {}