@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.
@@ -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, sql3, log) => {
3249
- await client.query(sql3);
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, sql3, applied, result, log) => {
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, sql3, log);
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=049EB7FB9B6E388E64756E2164756E21
3733
+ //# debugId=72E76020065991D164756E2164756E21
3708
3734
  //# sourceMappingURL=migrate.js.map