OxL Reference

method Principal.dynUser

The id a flag hashes for by: .User ("" for an anonymous caller).

Example:

oxl✓ checked in CI
fn main() io {
  print("[{Principal.User("ann", [], Map.new(), false, none).dynUser()}] [{Principal.Anonymous.dynUser()}]")
}
Output
[ann] []
pub(api) fn dynUser() -> str

Complexity. O(1).

Since. 1.0.0-beta

Returns

str

Effects

none declared (pure unless the body says otherwise)

Defined in: std/core/dynconf.oxl:255

See also