Skip to main content
vsql_pgjwt signs, verifies, and decodes JSON Web Tokens inside SQL. A stored function can hand back a signed token, and a query can check one it was given without calling out to an application.
A third party writes and maintains this extension. VillageSQL does not build, test, or ship it, and the description below follows the maintainer’s own documentation. Read that documentation before you rely on it.

Install

Build it from the repository, then install it into the server:

What it adds

HMAC signing is supported as HS256, HS384, and HS512, and RSA as RS256.
jwt_decode does not verify anything. Treat a decoded payload as text somebody sent you, not as a fact, until jwt_verify has passed on the same token.

See also