@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.
- package/dist/cli/migrate.js.map +1 -1
- package/dist/index.js +31 -1
- package/dist/index.js.map +4 -4
- package/dist/oidc/index.js +11 -1
- package/dist/oidc/index.js.map +3 -3
- package/dist/server.js +31 -1
- package/dist/server.js.map +4 -4
- package/package.json +1 -1
- package/dist/adaptive/config.d.ts +0 -34
- package/dist/adaptive/fingerprint.d.ts +0 -2
- package/dist/adaptive/inMemoryStores.d.ts +0 -3
- package/dist/adaptive/postgresStores.d.ts +0 -245
- package/dist/adaptive/types.d.ts +0 -62
- package/dist/agents/idJag.d.ts +0 -49
- package/dist/agents/inMemoryStores.d.ts +0 -4
- package/dist/agents/oidcAdapter.d.ts +0 -12
- package/dist/agents/postgresStores.d.ts +0 -569
- package/dist/agents/registrationClient.d.ts +0 -50
- package/dist/apikeys/inMemoryStores.d.ts +0 -4
- package/dist/apikeys/postgresStores.d.ts +0 -359
- package/dist/fga/config.d.ts +0 -53
- package/dist/fga/inMemoryStores.d.ts +0 -3
- package/dist/fga/postgresStores.d.ts +0 -116
- package/dist/fga/redisCheckCache.d.ts +0 -11
- package/dist/fga/schema.d.ts +0 -2
- package/dist/fga/types.d.ts +0 -28
- package/dist/migrations/generate.d.ts +0 -2
- package/dist/migrations/index.d.ts +0 -5
- package/dist/migrations/runner.d.ts +0 -13
- package/dist/migrations/types.d.ts +0 -14
- package/dist/oidc/clientIdMetadata.d.ts +0 -32
- package/dist/oidc/inMemoryStores.d.ts +0 -11
- package/dist/oidc/postgresStores.d.ts +0 -1217
- package/dist/organizations/inMemoryOrganizationStore.d.ts +0 -2
- package/dist/organizations/postgresOrganizationStore.d.ts +0 -340
- package/dist/passwordless/inMemoryPasswordlessTokenStore.d.ts +0 -2
- package/dist/passwordless/postgresPasswordlessTokenStore.d.ts +0 -56
- package/dist/portal/inMemorySetupSessionStore.d.ts +0 -2
- package/dist/portal/postgresSetupSessionStore.d.ts +0 -116
- package/dist/roles/inMemoryRoleStore.d.ts +0 -2
- package/dist/roles/postgresRoleStore.d.ts +0 -86
- package/dist/roles/resolver.d.ts +0 -17
- package/dist/scim/postgresScimTokenStore.d.ts +0 -86
- package/dist/sso/inMemorySamlServiceProviderStore.d.ts +0 -2
- package/dist/sso/inMemorySsoConnectionStore.d.ts +0 -2
- package/dist/sso/postgresSamlServiceProviderStore.d.ts +0 -101
- package/dist/sso/postgresSsoConnectionStore.d.ts +0 -116
- package/dist/sso/samlIdpRoutes.d.ts +0 -139
- package/dist/webauthn/inMemoryWebAuthnCredentialStore.d.ts +0 -2
- package/dist/webauthn/postgresWebAuthnCredentialStore.d.ts +0 -146
- package/dist/webhooks/inMemoryStore.d.ts +0 -2
- package/dist/webhooks/postgresStore.d.ts +0 -116
package/dist/oidc/index.js
CHANGED
|
@@ -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=
|
|
11450
|
+
//# debugId=6012AEB9DD7CDF8264756E2164756E21
|
|
11441
11451
|
//# sourceMappingURL=index.js.map
|