refreshAndGetAuthToken static method

Future<void> refreshAndGetAuthToken({
  1. required dynamic flyCallBack(
    1. FlyResponse response
    ),
})

This refreshAndGetAuthToken is used to get refreshed Auth Token. The flyCallBack parameter is a function that will be called upon completion of the operation. It receives a FlyResponse object as a parameter, which contains information about the success or failure of the operation.

Implementation

static Future<void> refreshAndGetAuthToken(
    {required Function(FlyResponse response) flyCallBack}) {
  return FlyChatFlutterPlatform.instance.refreshAndGetAuthToken(flyCallBack);
}