bitwarden_core::secrets_manager

Module state

Source
Expand description

Secrets Manager state management.

Secrets Manager supports persisting state to an encrypted file. This state file primarily contains the auth token which circumvents rate limiting on frequent logins.

Structsยง

Enumsยง

Constantsยง

  • STATE_VERSION ๐Ÿ”’
    Current version of the state file. This should be incremented whenever backwards incompatible changes are done.

Functionsยง

  • get ๐Ÿ”’
    Reads, parses and decrypts a state file using the provided access token.
  • set ๐Ÿ”’
    Serializes and encrypts the state using the provided access token.