canic 0.61.6

Canic — a canister orchestration and management toolkit for the Internet Computer
Documentation
1
2
3
4
5
6
7
//! Public access helpers re-exported from the core access layer.

pub use crate::__internal::core::access::{AccessError, app, auth, env};

pub fn require_local() -> Result<(), crate::Error> {
    env::build_network_local().map_err(|err| crate::Error::forbidden(err.to_string()))
}