Skip to main content

AuthCheckFn

Type Alias AuthCheckFn 

Source
pub type AuthCheckFn = Box<dyn Fn(&App) -> bool + Send + Sync>;
Available on crate feature guard only.
Expand description

Type alias for authentication check function.

The function receives the application context and returns whether the user is authenticated.

Aliased Typeยง

pub struct AuthCheckFn(/* private fields */);