postgrest-docs icon indicating copy to clipboard operation
postgrest-docs copied to clipboard

How-to for using JWT in cookies

Open steve-chavez opened this issue 6 years ago • 1 comments

Use the snippet in https://github.com/PostgREST/postgrest/issues/773#issuecomment-275602759

steve-chavez avatar Apr 19 '19 00:04 steve-chavez

Has there been any more work on this? Is a proxy server still mandatory, or can postgrest be configured to use a cookie header for its JWT?

I am pretty confident I can change the /login endpoint to respond with a set-cookie header to store the JWT; once I've done that how do I ensure the rest of the endpoints in postgrest are checking the cookie header for a JWT?

mckinlde avatar Nov 13 '23 05:11 mckinlde