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.
See also
- vsql_oauth2 — signing in to the database itself with a JWT, rather than handling tokens in SQL
- Available extensions — the full catalog
- intojhanurag/vsql-pgjwt — source, examples, error handling, and the known limitations

