Skip to content

Commit

Permalink
Merge pull request #22 from burrscurr/master
Browse files Browse the repository at this point in the history
Refer to function with schema-qualified name
  • Loading branch information
michelp authored Nov 13, 2021
2 parents e7b1128 + 8aba549 commit 9742dab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pgjwt--0.1.1--0.2.0.sql
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ RETURNS table(header json, payload json, valid boolean) LANGUAGE sql AS $$
jwt.header AS header,
jwt.payload AS payload,
jwt.signature_ok AND tstzrange(
to_timestamp(try_cast_double(jwt.payload->>'nbf')),
to_timestamp(try_cast_double(jwt.payload->>'exp'))
to_timestamp(@extschema@.try_cast_double(jwt.payload->>'nbf')),
to_timestamp(@extschema@.try_cast_double(jwt.payload->>'exp'))
) @> CURRENT_TIMESTAMP AS valid
FROM (
SELECT
Expand Down

0 comments on commit 9742dab

Please sign in to comment.