farcaster_rs/types/account/mod.rs
1/// ## Auth
2/// Holds authentication structs
3pub mod auth;
4
5use auth::bearer::Bearer;
6use auth::secret::SecretToken;
7use ethers::prelude::k256::ecdsa::SigningKey;
8use ethers::signers::Wallet;
9
10/// Farcaster account
11/// holds account keypair and Merkle v2 API token
12#[derive(Debug)]
13pub struct Account {
14 pub(crate) wallet: Wallet<SigningKey>,
15 pub(crate) bearer_token: Option<Bearer>,
16 pub(crate) session_token: Option<SecretToken>,
17 pub(crate) token_duration_secs: Option<i64>,
18}