Add type basic_auth.jwt_token. (#308)

Or the function login will show error.
This commit is contained in:
yang
2020-03-12 12:58:07 -05:00
committed by GitHub
parent 0d3dc8509c
commit a343536539
+5
View File
@@ -406,6 +406,11 @@ As described in `JWT from SQL`_, we'll create a JWT inside our login function. N
.. code-block:: postgres
-- add type
CREATE TYPE basic_auth.jwt_token AS (
token text
);
-- login should be on your exposed schema
create or replace function
login(email text, pass text) returns basic_auth.jwt_token as $$