Skip to main content

authenticated

Function authenticated 

Source
pub async fn authenticated(_caller: Principal) -> Result<(), AccessError>
Expand description

Verify a delegated token read from the ingress payload.

Contract:

  • The delegated token MUST be the first candid argument, or embedded in an AuthenticatedRequest as the single argument.
  • Decoding failures result in access denial.
  • The caller argument is accepted for composability and is not inspected.