diff --git a/auth.rst b/auth.rst index 7957cb9b8..203d046c3 100644 --- a/auth.rst +++ b/auth.rst @@ -116,7 +116,7 @@ There is no performance penalty for having many database roles, although roles a Custom Validation ----------------- -PostgREST honors the :code:`exp` claim for token expiration, rejecting expired tokens. However it does not enforce any extra constraints. An example of an extra constraint would be to immediately revoke access for a certain user. The configuration file paramter :code:`pre-request` specifies a stored procedure to call immediately after the authenticator switches into a new role and before the main query itself runs. +PostgREST honors the :code:`exp` claim for token expiration, rejecting expired tokens. However it does not enforce any extra constraints. An example of an extra constraint would be to immediately revoke access for a certain user. The configuration file parameter :code:`pre-request` specifies a stored procedure to call immediately after the authenticator switches into a new role and before the main query itself runs. Here's an example. In the config file specify a stored procedure: