verify method

Future<Response<Authentication>> verify({
  1. String? token,
})

Implementation

Future<Response<Authentication>> verify({String? token}) {
  return api.service
      .verify(
        token: token ?? tokenStorage!.token,
      )
      .then(
        (value) => value.copyWith(body: value.body != null ? Authentication.fromJson(value.body) : null),
      );
}