logout static method

Future<void> logout()

Implementation

static Future<void> logout() async {
  await remove('user_id');
  await remove('user_data');
  // Also revoke the locally-held bearer token.
  final tk = _tokenKeyOrNull();
  if (tk != null) await remove(tk);
}