Add hooks to validate perpetual API tokens