-
GoTrue + PostgREST
When PostgREST receives a request that contains a valid JWT with a
role
claim it will switch to a database role with that name for the duration of the HTTP request. GoTrue doesn’t issue JWT’s with arole
claim by default but it’s a pretty easy fix to make it do so.