updateUser method

void updateUser(
  1. Map<String, dynamic> user
)

Replaces the stored user payload without changing the token.

Implementation

void updateUser(Map<String, dynamic> user) {
  storage.writeJson(userKey, user);
}