Called from ui(req) once the version has been resolved through the instance
policy; the value goes into a hidden input the server function reads back with
ver_token_verify().
Usage
ver_token_sign(ver, secret = ver_token_secret(), ttl = 86400, now = Sys.time())Arguments
- ver
a version label (
v8,v4b, ...)- secret
from
ver_token_secret()- ttl
seconds until the token expires (default 24 h: a page left open longer than that is asked to reload)
- now
the current time (injectable for tests)