@absolutejs/auth 0.78.0 → 0.80.0

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.
@@ -47,7 +47,7 @@
47
47
  }
48
48
  ]
49
49
  },
50
- "title": "Your Postgres database (recommended)",
50
+ "title": "Neon Postgres (persistent sessions)",
51
51
  "wiring": {
52
52
  "code": "createNeonAuthSessionStore(${env.DATABASE_URL} ?? \"\", decodeSessionUserRecord)",
53
53
  "imports": [
@@ -81,19 +81,19 @@
81
81
  ],
82
82
  "lifecycle": [
83
83
  {
84
- "command": "bunx absolute-auth migrate",
84
+ "command": "bunx absolute-auth setup",
85
85
  "id": "migrate",
86
86
  "idempotent": true,
87
87
  "kind": "migration",
88
- "title": "Set up the sign-in tables in your database",
88
+ "title": "Set up the selected sign-in storage",
89
89
  "when": "after-install"
90
90
  },
91
91
  {
92
- "command": "bunx absolute-auth migrate",
92
+ "command": "bunx absolute-auth setup",
93
93
  "id": "migrate-upgrade",
94
94
  "idempotent": true,
95
95
  "kind": "migration",
96
- "title": "Apply new sign-in tables after upgrading",
96
+ "title": "Upgrade the selected sign-in storage",
97
97
  "when": "after-upgrade"
98
98
  }
99
99
  ],
@@ -111,12 +111,6 @@
111
111
  ],
112
112
  "requires": {
113
113
  "env": [
114
- {
115
- "description": "Postgres connection string (sign-in tables live here)",
116
- "example": "postgres://user:pass@host/db",
117
- "key": "DATABASE_URL",
118
- "secret": true
119
- },
120
114
  {
121
115
  "description": "Absolutejs OAuth client id",
122
116
  "docsUrl": "https://absolutejs.ai/dashboard",
@@ -258,7 +252,8 @@
258
252
  "services": [
259
253
  {
260
254
  "description": "Stores accounts, sessions, and audit events",
261
- "id": "postgres"
255
+ "id": "postgres",
256
+ "optional": true
262
257
  }
263
258
  ]
264
259
  },
@@ -321,8 +316,8 @@
321
316
  "contract": "auth/session-store",
322
317
  "description": "Where live sign-in sessions are kept",
323
318
  "known": [
324
- "@absolutejs/auth#postgres",
325
- "@absolutejs/auth#memory"
319
+ "@absolutejs/auth#createNeonAuthSessionStore",
320
+ "@absolutejs/auth#createInMemoryAuthSessionStore"
326
321
  ],
327
322
  "required": true
328
323
  },