From a34353653904311fb21d3033f25ced88f07baaf2 Mon Sep 17 00:00:00 2001 From: yang <27681135@qq.com> Date: Fri, 13 Mar 2020 01:58:07 +0800 Subject: [PATCH] Add type basic_auth.jwt_token. (#308) Or the function login will show error. --- auth.rst | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/auth.rst b/auth.rst index 4b770cb24..fc05b2822 100644 --- a/auth.rst +++ b/auth.rst @@ -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 $$