pub async fn verify_grant(
pool: &PgPool,
grant: &ClaimGrant,
) -> Result<(), GrantVerifyError>Expand description
Verify a grant produced by PostgresScheduler::claim_for_worker.
Returns Ok(()) iff the signature embedded in grant.grant_key
verifies under the kid stored with it and expires_at_ms is in
the future. Exposed for test / consumer use; a production
claim_from_grant on Postgres will extend this with fence-check
into ff_attempt.