yew_oauth2/components/
mod.rs

1//! Components used when rendering HTML
2
3pub mod authenticated;
4pub mod context;
5pub mod failure;
6pub mod noauth;
7pub mod redirect;
8pub mod use_authentication;
9
10// only put pub use for common components
11
12pub use authenticated::*;
13pub use failure::*;
14pub use noauth::*;
15pub use use_authentication::*;
16
17use yew::prelude::*;
18
19fn missing_context() -> Html {
20    html!(<div> { "Unable to find OAuth2 context! This element needs to be wrapped into an `OAuth2` component somewhere in the hierarchy"} </div>)
21}