pub struct FirebaseAuth {
pub config: FirebaseAuthConfig,
pub cached_public_keys: Arc<RwLock<Option<SharedState>>>,
}Expand description
Main struct for Firebase Authentication operations
Fields§
§config: FirebaseAuthConfigConfiguration for Firebase Authentication
cached_public_keys: Arc<RwLock<Option<SharedState>>>Cached public keys with their expiration time
Implementations§
Source§impl FirebaseAuth
impl FirebaseAuth
pub async fn new(project_id: String) -> Self
pub async fn verify_token( &self, token: &str, ) -> FirebaseAuthResult<FirebaseAuthUser>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FirebaseAuth
impl !RefUnwindSafe for FirebaseAuth
impl Send for FirebaseAuth
impl Sync for FirebaseAuth
impl Unpin for FirebaseAuth
impl !UnwindSafe for FirebaseAuth
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more