@absolutejs/auth 0.84.0 → 0.86.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 +18 -0
- package/changelog.json +47 -0
- package/dist/bun.js +48 -1
- package/dist/bun.js.map +4 -4
- package/dist/cli/migrate.js +32 -6
- package/dist/cli/migrate.js.map +4 -4
- package/dist/cli/setup.d.ts +1 -1
- package/dist/htmx/index.js +27 -1
- package/dist/htmx/index.js.map +3 -3
- package/dist/index.js +83 -22
- package/dist/index.js.map +8 -8
- package/dist/linkedProviders/index.js +27 -1
- package/dist/linkedProviders/index.js.map +3 -3
- package/dist/organizations/config.d.ts +2 -0
- package/dist/organizations/operations.d.ts +6 -4
- package/dist/organizations/routes.d.ts +1 -1
- package/dist/organizations/types.d.ts +8 -0
- package/dist/providers/clients.d.ts +28 -3
- package/dist/providers/index.js +28 -28
- package/dist/providers/index.js.map +4 -4
- package/dist/providers/neon.d.ts +27 -27
- package/dist/server.js +83 -22
- package/dist/server.js.map +8 -8
- package/docs/neon.md +12 -5
- package/package.json +2 -2
package/dist/cli/migrate.js
CHANGED
|
@@ -1745,6 +1745,32 @@ var providers = defineProviders({
|
|
|
1745
1745
|
url: "https://nid.naver.com/oauth2.0/token"
|
|
1746
1746
|
}
|
|
1747
1747
|
},
|
|
1748
|
+
neon: {
|
|
1749
|
+
authorizationUrl: "https://oauth2.neon.tech/oauth2/auth",
|
|
1750
|
+
isOIDC: true,
|
|
1751
|
+
isRefreshable: true,
|
|
1752
|
+
PKCEMethod: "S256",
|
|
1753
|
+
profileRequest: {
|
|
1754
|
+
authIn: "header",
|
|
1755
|
+
encoding: "application/json",
|
|
1756
|
+
method: "GET",
|
|
1757
|
+
url: "https://oauth2.neon.tech/userinfo"
|
|
1758
|
+
},
|
|
1759
|
+
revocationRequest: {
|
|
1760
|
+
authIn: "body",
|
|
1761
|
+
encoding: "application/x-www-form-urlencoded",
|
|
1762
|
+
tokenParamName: "token",
|
|
1763
|
+
url: "https://oauth2.neon.tech/oauth2/revoke"
|
|
1764
|
+
},
|
|
1765
|
+
scopeRequired: true,
|
|
1766
|
+
subject: ["sub"],
|
|
1767
|
+
subjectType: "string",
|
|
1768
|
+
tokenRequest: {
|
|
1769
|
+
authIn: "body",
|
|
1770
|
+
encoding: "application/x-www-form-urlencoded",
|
|
1771
|
+
url: "https://oauth2.neon.tech/oauth2/token"
|
|
1772
|
+
}
|
|
1773
|
+
},
|
|
1748
1774
|
notion: {
|
|
1749
1775
|
authorizationUrl: "https://api.notion.com/v1/oauth/authorize",
|
|
1750
1776
|
email: ["bot", "owner", "user", "person", "email"],
|
|
@@ -2896,7 +2922,7 @@ var oauthSocketTicketsTable = pgTable10("auth_oauth_socket_tickets", {
|
|
|
2896
2922
|
});
|
|
2897
2923
|
|
|
2898
2924
|
// src/organizations/postgresOrganizationStore.ts
|
|
2899
|
-
import { and as and6, desc as desc7, eq as eq11 } from "drizzle-orm";
|
|
2925
|
+
import { and as and6, desc as desc7, eq as eq11, exists, gt as gt3, notExists, sql as sql3 } from "drizzle-orm";
|
|
2900
2926
|
import {
|
|
2901
2927
|
bigint as bigint9,
|
|
2902
2928
|
jsonb as jsonb6,
|
|
@@ -3245,18 +3271,18 @@ var JOURNAL_DDL = `CREATE TABLE IF NOT EXISTS "auth_migrations" (
|
|
|
3245
3271
|
var isJournalRow = (value) => typeof value === "object" && value !== null && typeof Reflect.get(value, "id") === "string";
|
|
3246
3272
|
var isBlockName = (value) => Object.hasOwn(blockMigrations, value);
|
|
3247
3273
|
var allBlockNames = () => Object.keys(blockMigrations).filter(isBlockName);
|
|
3248
|
-
var applyOne = async (client, id,
|
|
3249
|
-
await client.query(
|
|
3274
|
+
var applyOne = async (client, id, sql4, log) => {
|
|
3275
|
+
await client.query(sql4);
|
|
3250
3276
|
await client.query(`INSERT INTO "auth_migrations" ("id", "applied_at_ms") VALUES ($1, $2)`, [id, Date.now()]);
|
|
3251
3277
|
log(`apply ${id}`);
|
|
3252
3278
|
};
|
|
3253
|
-
var runOne = async (client, id,
|
|
3279
|
+
var runOne = async (client, id, sql4, applied, result, log) => {
|
|
3254
3280
|
if (applied.has(id)) {
|
|
3255
3281
|
result.skipped.push(id);
|
|
3256
3282
|
log(`skip ${id}`);
|
|
3257
3283
|
return;
|
|
3258
3284
|
}
|
|
3259
|
-
await applyOne(client, id,
|
|
3285
|
+
await applyOne(client, id, sql4, log);
|
|
3260
3286
|
result.applied.push(id);
|
|
3261
3287
|
};
|
|
3262
3288
|
var runMigrations = async ({
|
|
@@ -3704,5 +3730,5 @@ var main = async () => {
|
|
|
3704
3730
|
};
|
|
3705
3731
|
await main();
|
|
3706
3732
|
|
|
3707
|
-
//# debugId=
|
|
3733
|
+
//# debugId=72E76020065991D164756E2164756E21
|
|
3708
3734
|
//# sourceMappingURL=migrate.js.map
|