auth_user

Requires user authentication.

Target function

Signature

1auth_user(name::string, ...)

Requires user authentication.

auth_user is a global callable that can be used wherever an expression is valid. auth_user works with request identity or stored session state. Keep authorization checks close to the action they protect.

Parameters

name
Required value of type string. Supply name positionally unless the signature shows a keyword form.
...
Additional values may be supplied after the earlier arguments.

Examples

Basic call

1auth_user('ada')
The example shows the normal call shape. Adapt variable names, validation, and surrounding error handling to the context.