bitwarden_auth/send_access/api/
token_api_success_response.rs

1use serde::{Deserialize, Serialize};
2
3#[derive(Serialize, Deserialize, Debug)]
4/// The server response for successful send access token request.
5pub(crate) struct SendAccessTokenApiSuccessResponse {
6    /// The access token string.
7    pub(crate) access_token: String,
8    /// The duration in seconds until the token expires.
9    pub(crate) expires_in: u64,
10    /// The scope of the access token.
11    /// RFC: <https://datatracker.ietf.org/doc/html/rfc6749#section-3.3>
12    pub(crate) scope: String,
13    /// The type of the token.
14    /// This will be "Bearer" for send access tokens.
15    /// More information can be found in the OAuth 2.0 authZ framework RFC:
16    /// <https://datatracker.ietf.org/doc/html/rfc6749#section-7.1>
17    pub(crate) token_type: String,
18}