dittolive-ditto 5.0.0

Ditto is a peer to peer cross-platform database that allows mobile, web, IoT and server apps to sync with or without an internet connection.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! Authentication providers for Ditto.
//!
//! This module provides types needed for authenticating with Ditto Cloud or
//! an on-premises authentication server when using
//! [`DittoConfigConnect::Server`].
//!
//! [`DittoConfigConnect::Server`]: crate::DittoConfigConnect::Server

mod auth;

pub use self::auth::{
    AuthenticationClientFeedback, DittoAuthenticationEventHandler, DittoAuthenticator,
};

/// Authentication provider for testing and development. Not intended for production use.
pub fn get_development_provider() -> String {
    ffi_sdk::dittoffi_DITTO_DEVELOPMENT_PROVIDER().to_string()
}