supasession
Advanced session management for Supabase.
supasession · Advanced session management for Supabase.
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 101795 | supasession | supasession | 0.1.2 | SEC | PostgreSQL | SQL |
Usage
Sources:
- Official upstream README
- Official extension control file (supasession.control)
- Official extension SQL (supasession.sql)
supasession — > [!WARNING] > This extension is installed in the supasession schema and can potentially cause namespace collisions if you already had one before. Use it when implementing the corresponding security, audit, or access-control workflow. Use the pinned upstream revision linked above as the API boundary and test it on the target PostgreSQL build.
Core Workflow
Install the extension in the intended database, run the smallest upstream example above when available, and verify the installed version and returned values before integrating it into application SQL.
Important Objects
supasession.disable()is an extension function and returnsvoid.supasession.enable()is an extension function and returnsvoid.supasession.get_config()is an extension function and returnssupasession.supasession.set_config(enabled BOOLEAN DEFAULT NULL, max_sessions INTEGER DEFAULT NULL, strategy supasession.enforcement_strategy DEFAULT NULL)is an extension function and returnssupasession.supasession.sid()is an extension function and returnsuuid.supasession.enforcement_strategyis an extension-defined type.supasession.configis a table installed or managed by the extension.supasessionis a schema created by the extension.
Requirements and Caveats
- The reviewed control file declares default version
0.1.2. - The control file marks the extension as non-relocatable.
- The control file does not require superuser-only installation.
- Confirm privileges, supported PostgreSQL versions, upgrade behavior, and failure cases against the pinned source before production use.