Skip to main content

bitwarden_importers/importers/onepassword/access/
session.rs

1//! The signed channel a completed login leaves behind.
2
3use super::{opdata::AesKey, rest::RestClient};
4
5/// The session key and a client that MAC-signs and encrypts every request with it.
6pub(super) struct Session {
7    pub key: AesKey,
8    pub rest: RestClient,
9}
10
11impl Session {
12    pub(crate) fn new(key: AesKey, rest: RestClient) -> Session {
13        Session { key, rest }
14    }
15}