@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.
- package/CHANGELOG.md +24 -0
- package/README.md +48 -0
- package/changelog.json +44 -0
- package/dist/apikeys/config.d.ts +1 -1
- package/dist/apikeys/tokenRoutes.d.ts +7 -0
- package/dist/cli/migrate.js +46 -1
- package/dist/cli/migrate.js.map +6 -5
- package/dist/cli/setup.d.ts +12 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +665 -605
- package/dist/index.js.map +13 -11
- package/dist/linkedProviders/credentialError.d.ts +7 -0
- package/dist/linkedProviders/index.d.ts +1 -0
- package/dist/linkedProviders/index.js +57 -10
- package/dist/linkedProviders/index.js.map +6 -5
- package/dist/manifest.js +13 -17
- package/dist/manifest.js.map +3 -3
- package/dist/manifest.json +9 -14
- package/dist/server.js +664 -605
- package/dist/server.js.map +13 -11
- package/dist/session/neonStore.d.ts +4 -0
- package/dist/types.d.ts +1 -1
- package/package.json +11 -7
package/dist/manifest.json
CHANGED
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
}
|
|
48
48
|
]
|
|
49
49
|
},
|
|
50
|
-
"title": "
|
|
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
|
|
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
|
|
88
|
+
"title": "Set up the selected sign-in storage",
|
|
89
89
|
"when": "after-install"
|
|
90
90
|
},
|
|
91
91
|
{
|
|
92
|
-
"command": "bunx absolute-auth
|
|
92
|
+
"command": "bunx absolute-auth setup",
|
|
93
93
|
"id": "migrate-upgrade",
|
|
94
94
|
"idempotent": true,
|
|
95
95
|
"kind": "migration",
|
|
96
|
-
"title": "
|
|
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#
|
|
325
|
-
"@absolutejs/auth#
|
|
319
|
+
"@absolutejs/auth#createNeonAuthSessionStore",
|
|
320
|
+
"@absolutejs/auth#createInMemoryAuthSessionStore"
|
|
326
321
|
],
|
|
327
322
|
"required": true
|
|
328
323
|
},
|