// 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)