Skip to main content

create_auth_endpoint

Function create_auth_endpoint 

Source
pub fn create_auth_endpoint<F>(
    path: impl Into<String>,
    method: Method,
    options: AuthEndpointOptions,
    handler: F,
) -> AsyncAuthEndpoint
where F: for<'a> Fn(&'a AuthContext, Request<Vec<u8>>) -> Pin<Box<dyn Future<Output = Result<Response<Vec<u8>>, OpenAuthError>> + Send + 'a>> + Send + Sync + 'static,