bitwarden_auth/send_access/
client.rs

1use bitwarden_core::Client;
2#[cfg(feature = "wasm")]
3use wasm_bindgen::prelude::*;
4
5#[derive(Clone)]
6#[cfg_attr(feature = "wasm", wasm_bindgen)]
7pub struct SendAccessClient {
8    pub(crate) client: Client,
9}
10
11impl SendAccessClient {
12    pub(crate) fn new(client: Client) -> Self {
13        Self { client }
14    }
15}
16
17#[cfg_attr(feature = "wasm", wasm_bindgen)]
18impl SendAccessClient {
19    /// Request an access token for the provided send
20    pub async fn request_send_access_token(&self, request: String) -> String {
21        // TODO: This is just here to silence some warnings
22        let _config = self.client.internal.get_api_configurations().await;
23        request
24    }
25}