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; $$;