rhailib/examples/end_to_end/auth_script.rhai
2025-06-19 01:42:02 +03:00

7 lines
249 B
Plaintext

// auth_script.rhai
// This script calls a custom registered function 'check_permission'
// and passes the CALLER_PUBLIC_KEY to it.
// CALLER_PUBLIC_KEY is injected into the script's scope by the rhailib_worker.
check_permission(CALLER_PUBLIC_KEY)