Skip to content

Commit

Permalink
Prefix pgcrypto hmac function with @extschema@
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Wilson committed Dec 18, 2018
1 parent 546a291 commit 87cff3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pgjwt--0.0.1.sql
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ WITH
WHEN algorithm = 'HS384' THEN 'sha384'
WHEN algorithm = 'HS512' THEN 'sha512'
ELSE '' END AS id) -- hmac throws error
SELECT @[email protected]_encode(hmac(signables, secret, alg.id)) FROM alg;
SELECT @[email protected]_encode(@extschema@.hmac(signables, secret, alg.id)) FROM alg;
$$;


Expand Down

0 comments on commit 87cff3f

Please sign in to comment.