update static method

dynamic update(
  1. dynamic update(
    1. dynamic data
    )
)

Update the auth user data.

Implementation

static update(Function(dynamic data) update) async {
  dynamic data = await NyStorage.read(key());
  dynamic updatedData = await update(data);
  await authenticate(data: updatedData);
}