putCredentials static method

void putCredentials(
  1. Credentials creds
)

Puts the provided Credentials to the browser's storage.

Implementation

static void putCredentials(Credentials creds) {
  web.window.localStorage['credentials_${creds.userId}'] = json.encode(
    creds.toJson(),
  );
}