delete method

Future<void> delete(
  1. UserId id
)

Deletes the Credentials identified by the provided id from the database.

Implementation

Future<void> delete(UserId id) async {
  data.remove(id);

  await safe((db) async {
    final stmt = db.delete(db.tokens)..where((e) => e.userId.equals(id.val));
    await stmt.go();
  });
}