You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Saves user permissions in the JWT token. This will allow to keep the permissions in the token itself and avoid querying the database for each request.
7
+
8
+
#### `VIDYA_AUTH_USER_PERMISSIONS_CACHE_TTL`.
9
+
Time to live for the user permissions cache in seconds. Set to 0 to disable caching for development purposes for example.
10
+
11
+
- If `VIDYA_AUTH_SAVE_PERMISSIONS_IN_JWT_TOKEN` is set to `false`, then user permissions will be fetched from the database for each request and stored in cache for the specified time.
12
+
- If `VIDYA_AUTH_SAVE_PERMISSIONS_IN_JWT_TOKEN` is set to `true`, this will be ignored and user permissions will be stored in the JWT token itself.
0 commit comments