anonUser static method

Future<ParseUser> anonUser(
  1. String id

sign in as anonymous user provide random id to create new user its not possible to sign in again as this specific user after session token is revoked


static Future<ParseUser> anonUser(String id) async {
  // ignore: omit_local_variable_types
  final Map<String, String> tmpHead = {}
    ..['X-Parse-Revocable-Session'] = '1';
  var response = await'$_url/parse/users',
      headers: tmpHead,
      body: jsonEncode({
        'authData': {
          'anonymous': {'id': id.toLowerCase()}
  return ParseUser._fromResponse(response);