@absolutejs/auth 0.56.3 → 0.56.4

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.
Files changed (52) hide show
  1. package/dist/cli/migrate.js.map +1 -1
  2. package/dist/index.js +31 -1
  3. package/dist/index.js.map +4 -4
  4. package/dist/oidc/index.js +11 -1
  5. package/dist/oidc/index.js.map +3 -3
  6. package/dist/server.js +31 -1
  7. package/dist/server.js.map +4 -4
  8. package/package.json +1 -1
  9. package/dist/adaptive/config.d.ts +0 -34
  10. package/dist/adaptive/fingerprint.d.ts +0 -2
  11. package/dist/adaptive/inMemoryStores.d.ts +0 -3
  12. package/dist/adaptive/postgresStores.d.ts +0 -245
  13. package/dist/adaptive/types.d.ts +0 -62
  14. package/dist/agents/idJag.d.ts +0 -49
  15. package/dist/agents/inMemoryStores.d.ts +0 -4
  16. package/dist/agents/oidcAdapter.d.ts +0 -12
  17. package/dist/agents/postgresStores.d.ts +0 -569
  18. package/dist/agents/registrationClient.d.ts +0 -50
  19. package/dist/apikeys/inMemoryStores.d.ts +0 -4
  20. package/dist/apikeys/postgresStores.d.ts +0 -359
  21. package/dist/fga/config.d.ts +0 -53
  22. package/dist/fga/inMemoryStores.d.ts +0 -3
  23. package/dist/fga/postgresStores.d.ts +0 -116
  24. package/dist/fga/redisCheckCache.d.ts +0 -11
  25. package/dist/fga/schema.d.ts +0 -2
  26. package/dist/fga/types.d.ts +0 -28
  27. package/dist/migrations/generate.d.ts +0 -2
  28. package/dist/migrations/index.d.ts +0 -5
  29. package/dist/migrations/runner.d.ts +0 -13
  30. package/dist/migrations/types.d.ts +0 -14
  31. package/dist/oidc/clientIdMetadata.d.ts +0 -32
  32. package/dist/oidc/inMemoryStores.d.ts +0 -11
  33. package/dist/oidc/postgresStores.d.ts +0 -1217
  34. package/dist/organizations/inMemoryOrganizationStore.d.ts +0 -2
  35. package/dist/organizations/postgresOrganizationStore.d.ts +0 -340
  36. package/dist/passwordless/inMemoryPasswordlessTokenStore.d.ts +0 -2
  37. package/dist/passwordless/postgresPasswordlessTokenStore.d.ts +0 -56
  38. package/dist/portal/inMemorySetupSessionStore.d.ts +0 -2
  39. package/dist/portal/postgresSetupSessionStore.d.ts +0 -116
  40. package/dist/roles/inMemoryRoleStore.d.ts +0 -2
  41. package/dist/roles/postgresRoleStore.d.ts +0 -86
  42. package/dist/roles/resolver.d.ts +0 -17
  43. package/dist/scim/postgresScimTokenStore.d.ts +0 -86
  44. package/dist/sso/inMemorySamlServiceProviderStore.d.ts +0 -2
  45. package/dist/sso/inMemorySsoConnectionStore.d.ts +0 -2
  46. package/dist/sso/postgresSamlServiceProviderStore.d.ts +0 -101
  47. package/dist/sso/postgresSsoConnectionStore.d.ts +0 -116
  48. package/dist/sso/samlIdpRoutes.d.ts +0 -139
  49. package/dist/webauthn/inMemoryWebAuthnCredentialStore.d.ts +0 -2
  50. package/dist/webauthn/postgresWebAuthnCredentialStore.d.ts +0 -146
  51. package/dist/webhooks/inMemoryStore.d.ts +0 -2
  52. package/dist/webhooks/postgresStore.d.ts +0 -116
@@ -11190,6 +11190,10 @@ var createPostgresAuthorizationCodeStore = (db) => ({
11190
11190
  const [row] = await db.delete(oauthCodesTable).where(eq(oauthCodesTable.code_hash, codeHash)).returning();
11191
11191
  return row ? toCode(row) : undefined;
11192
11192
  },
11193
+ deleteForUserClient: async (userId, clientId) => {
11194
+ const deleted = await db.delete(oauthCodesTable).where(and(eq(oauthCodesTable.user_id, userId), eq(oauthCodesTable.client_id, clientId))).returning({ codeHash: oauthCodesTable.code_hash });
11195
+ return deleted.length;
11196
+ },
11193
11197
  saveCode: async (code) => {
11194
11198
  await db.insert(oauthCodesTable).values(toCodeValues(code));
11195
11199
  }
@@ -11239,6 +11243,12 @@ var createPostgresDeviceAuthorizationStore = (db) => ({
11239
11243
  deleteByDeviceCodeHash: async (deviceCodeHash) => {
11240
11244
  await db.delete(oauthDeviceAuthorizationsTable).where(eq(oauthDeviceAuthorizationsTable.device_code_hash, deviceCodeHash));
11241
11245
  },
11246
+ deleteForUserClient: async (userId, clientId) => {
11247
+ const deleted = await db.delete(oauthDeviceAuthorizationsTable).where(and(eq(oauthDeviceAuthorizationsTable.user_sub, userId), eq(oauthDeviceAuthorizationsTable.client_id, clientId))).returning({
11248
+ deviceCodeHash: oauthDeviceAuthorizationsTable.device_code_hash
11249
+ });
11250
+ return deleted.length;
11251
+ },
11242
11252
  findByDeviceCodeHash: async (deviceCodeHash) => {
11243
11253
  const [row] = await db.select().from(oauthDeviceAuthorizationsTable).where(eq(oauthDeviceAuthorizationsTable.device_code_hash, deviceCodeHash)).limit(1);
11244
11254
  return row ? toDeviceAuth(row) : undefined;
@@ -11437,5 +11447,5 @@ export {
11437
11447
  createNeonAuthorizationCodeStore
11438
11448
  };
11439
11449
 
11440
- //# debugId=02F0CDEF2D22712F64756E2164756E21
11450
+ //# debugId=6012AEB9DD7CDF8264756E2164756E21
11441
11451
  //# sourceMappingURL=index.js.map