From 87cff3ffb282aa9ffd713618727523749268642b Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Tue, 18 Dec 2018 10:18:36 -0600 Subject: [PATCH] Prefix pgcrypto hmac function with @extschema@ --- pgjwt--0.0.1.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pgjwt--0.0.1.sql b/pgjwt--0.0.1.sql index f95a30d..128a137 100644 --- a/pgjwt--0.0.1.sql +++ b/pgjwt--0.0.1.sql @@ -27,7 +27,7 @@ WITH WHEN algorithm = 'HS384' THEN 'sha384' WHEN algorithm = 'HS512' THEN 'sha512' ELSE '' END AS id) -- hmac throws error -SELECT @extschema@.url_encode(hmac(signables, secret, alg.id)) FROM alg; +SELECT @extschema@.url_encode(@extschema@.hmac(signables, secret, alg.id)) FROM alg; $$;