Skip to content

Commit fa48065

Browse files
committed
bundle
1 parent 3138b4d commit fa48065

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

packages/jwt-claims/sql/pgpm-jwt-claims--0.15.2.sql

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,10 @@ CREATE FUNCTION ctx.origin() RETURNS origin AS $EOFCODE$
1414
SELECT nullif(current_setting('jwt.claims.origin', true), '')::origin;
1515
$EOFCODE$ LANGUAGE sql STABLE;
1616

17-
-- Returns the current user agent string from the JWT claims
18-
-- This is a shorthand for jwt_public.current_user_agent()
1917
CREATE FUNCTION ctx.uagent() RETURNS text AS $EOFCODE$
2018
SELECT nullif(current_setting('jwt.claims.user_agent', true), '');
2119
$EOFCODE$ LANGUAGE sql STABLE;
2220

23-
-- Returns the current user's UUID from the JWT claims
24-
-- This is a shorthand for jwt_public.current_user_id()
2521
CREATE FUNCTION ctx.uid() RETURNS uuid AS $EOFCODE$
2622
SELECT nullif(current_setting('jwt.claims.user_id', true), '')::uuid;
2723
$EOFCODE$ LANGUAGE sql STABLE;
@@ -144,4 +140,4 @@ $EOFCODE$ LANGUAGE plpgsql STABLE;
144140

145141
CREATE FUNCTION jwt_private.current_token_id() RETURNS uuid AS $EOFCODE$
146142
SELECT nullif(current_setting('jwt.claims.token_id', true), '')::uuid;
147-
$EOFCODE$ LANGUAGE sql STABLE;
143+
$EOFCODE$ LANGUAGE sql STABLE;

0 commit comments

Comments
 (0)