scopes method

Future<ScopeInfo> scopes({
  1. List<String>? scopes,
})

Returns a list of details of a user's consent item.

Implementation

Future<ScopeInfo> scopes({List<String>? scopes}) {
  return ApiFactory.handleApiError(() async {
    Response response = await _dio.get('/v2/user/scopes',
        queryParameters: {'scopes': jsonEncode(scopes)});
    return ScopeInfo.fromJson(response.data);
  });
}