Example DX for a dioxus crate for Atproto OAuth
0
atproto-crates-dioxus.rs edited
19 lines 355 B View raw
1// main.rs 2use dioxus_atproto_oauth::prelude::*; 3 4#[derive(Routable)] 5enum Route { 6 #[route("/oauth/callback")] 7 AtprotoOAuthCallback {}, 8 #[route("/")] 9 Home {}, 10} 11 12fn App() -> Element { 13 rsx! { 14 AtprotoOAuthProvider { 15 config: AtprotoOAuthConfig::new("/oauth/callback"), 16 Router::<Route> {} 17 } 18 } 19}
Sign up or login to add to the discussion