Skip to main content

owlauth_client/
lib.rs

1#![forbid(unsafe_code)]
2
3//! Async, storage-free Project Auth protocol client for `OwlAuth` Runtime.
4
5/// Effective package version compiled into this crate.
6pub const VERSION: &str = env!("CARGO_PKG_VERSION");
7
8mod client;
9mod error;
10mod models;
11mod transport;
12
13pub use client::{
14    CancellationToken, Client, ClientConfig, Clock, DebugHook, EntropySource, OperationOptions,
15    SdkDebugEvent, SdkDebugOutcome,
16};
17pub use error::{Error, ErrorCategory, LocalAction, RetryPolicy};
18pub use models::{
19    AccessToken, BrowserLogoutPreparation, CredentialPair, CredentialPairRecord, CurrentUser,
20    JwksDocument, LoginStart, PendingLogin, PendingLoginRecord, PublicConfiguration, PublicJwk,
21    PublicProvider, RefreshToken, UserProjection, ValidatedCallback,
22};
23pub use transport::{
24    HttpMethod, HttpRequest, HttpResponse, Transport, TransportFailure, TransportFailureKind,
25};
26
27pub(crate) use models::{
28    CompletionResponse, CredentialPairWire, HandoffGuard, HandoffRequest, LoginStartRequest,
29    LoginStartResponse, RefreshRequest, RuntimeErrorWire,
30};