adminInviteStatus method

  1. @override
Future<Map<String, Object?>> adminInviteStatus({
  1. required String token,
})
override

Implementation

@override
Future<Map<String, Object?>> adminInviteStatus({
  required String token,
}) async {
  final response = await _client.request(
    method: 'GET',
    path: '/auth/admin/invite',
    query: {'token': token},
  );

  final _body = await response.transform(utf8.decoder).join();

  if (jsonDecode(_body) case {'data': final Map data}) {
    return data.map((key, value) => MapEntry((key as String), value));
  }

  throw Exception('Invalid response');
}