remove static method

Future remove({
  1. String? key,
})

Remove the auth user for a given key.

Implementation

static Future remove({String? key}) async {
  String storageKey = getEnv('AUTH_USER_KEY', defaultValue: 'AUTH_USER');
  if (key != null) {
    storageKey = key;
  }
  await NyStorage.delete(storageKey, andFromBackpack: true);
}