@smplcty/auth 0.6.1 → 0.6.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smplcty/auth",
3
- "version": "0.6.1",
3
+ "version": "0.6.3",
4
4
  "description": "Robust, type-safe session and role-based authentication primitives for PostgreSQL apps using Row-Level Security.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -2,7 +2,7 @@ name: resolve_session
2
2
  language: plpgsql
3
3
  volatility: stable
4
4
  security: definer
5
- returns: TABLE(user_id integer, expires_at timestamptz, tenant_ids integer[], all_tenants boolean, roles text[], has_requested_role boolean)
5
+ returns: TABLE(user_id integer, expires_at timestamptz, tenant_ids integer[], all_tenants boolean, roles varchar[], has_requested_role boolean)
6
6
  args:
7
7
  - name: p_session_id
8
8
  type: text
@@ -4,7 +4,7 @@ columns:
4
4
  type: serial
5
5
  primary_key: true
6
6
  - name: name
7
- type: text
7
+ type: varchar(30)
8
8
  nullable: false
9
9
  unique_constraints:
10
10
  - columns: [name]