shrike 0.1.1

AT Protocol library for Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use crate::syntax::{Did, Handle};
use serde::{Deserialize, Serialize};

/// Credentials returned by `com.atproto.server.createSession`.
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct AuthInfo {
    /// Short-lived access token for authenticated XRPC requests.
    pub access_jwt: String,
    /// Long-lived token used to obtain new access tokens.
    pub refresh_jwt: String,
    /// The account's handle (e.g., "alice.bsky.social").
    pub handle: Handle,
    /// The account's DID (e.g., "did:plc:...").
    pub did: Did,
}