getAccessToken method

  1. @override
Future getAccessToken({
  1. required MethodCall call,
})
override

Implementation

@override
Future getAccessToken({required MethodCall call}) async{
  final accessToken = await _getModuleInstance().getAccessToken();
  return {
    "success": accessToken != null,
    "message": accessToken != null ? "Get access token successful" : "No access token found",
    "data": {
      "token": accessToken?.token,
      "refreshToken": accessToken?.refreshToken,
      "claims": accessToken?.claims,
      "payload": accessToken?.payload
    }
  };
}