> Aztec.nr API reference, v6.0.0 (mainnet and testnet). Index: https://docs.aztec.network/aztec-nr-api/v6.0.0/llms.txt

# Function set_authorized

Module: `noir_aztec::authwit::auth`

```rust
pub unconstrained fn set_authorized(
    context: PublicContext,
    message_hash: Field,
    authorize: bool,
)
```

Helper function to set the authorization status of a message hash

Wraps a public call to the authentication registry to set the authorization status of a `message_hash`

@param message_hash The hash of the message to authorize @param authorize True if the message should be authorized, false if it should be revoked
