@absolutejs/auth 0.56.5 → 0.56.6
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 +22 -1
- package/dist/index.js.map +5 -5
- package/dist/oidc/index.d.ts +1 -1
- package/dist/oidc/index.js +8 -1
- package/dist/oidc/index.js.map +3 -3
- package/dist/oidc/types.d.ts +5 -0
- package/dist/server.js +22 -1
- package/dist/server.js.map +5 -5
- package/package.json +1 -1
package/dist/oidc/index.d.ts
CHANGED
|
@@ -8,4 +8,4 @@
|
|
|
8
8
|
export type { OidcProviderConfig } from './config';
|
|
9
9
|
export { generateSigningKey, jwkThumbprint, signJwt, toPublicJwk, verifyJwt, type SigningKey } from './keys';
|
|
10
10
|
export { createNeonAuthorizationCodeStore, createNeonClientAssertionJtiStore, createNeonClientRegistrationTokenStore, createNeonDeviceAuthorizationStore, createNeonInitialAccessTokenStore, createNeonOAuthClientStore, createNeonOidcRefreshTokenStore, createPostgresAuthorizationCodeStore, createPostgresClientAssertionJtiStore, createPostgresClientRegistrationTokenStore, createPostgresDeviceAuthorizationStore, createPostgresInitialAccessTokenStore, createPostgresOAuthClientStore, createPostgresOidcRefreshTokenStore } from './postgresStores';
|
|
11
|
-
export type { AuthorizationCodeStore, ClientAssertionJtiStore, ClientRegistrationTokenStore, DeviceAuthorizationStore, InitialAccessTokenStore, OAuthClient, OAuthClientStore, OidcRefreshTokenStore } from './types';
|
|
11
|
+
export type { AuthorizationCodeStore, ClientAssertionJtiStore, ClientRegistrationTokenStore, DeviceAuthorizationStore, InitialAccessTokenStore, OAuthClient, OAuthClientStore, OidcRefreshTokenConnection, OidcRefreshTokenStore } from './types';
|
package/dist/oidc/index.js
CHANGED
|
@@ -11352,6 +11352,13 @@ var createPostgresOidcRefreshTokenStore = (db) => ({
|
|
|
11352
11352
|
const rows = await db.selectDistinct({ client_id: oauthRefreshTokensTable.client_id }).from(oauthRefreshTokensTable).where(and(eq(oauthRefreshTokensTable.user_id, userId), gt(oauthRefreshTokensTable.expires_at_ms, Date.now())));
|
|
11353
11353
|
return rows.map((row) => row.client_id);
|
|
11354
11354
|
},
|
|
11355
|
+
listConnections: async () => {
|
|
11356
|
+
const rows = await db.selectDistinct({
|
|
11357
|
+
clientId: oauthRefreshTokensTable.client_id,
|
|
11358
|
+
userId: oauthRefreshTokensTable.user_id
|
|
11359
|
+
}).from(oauthRefreshTokensTable).where(gt(oauthRefreshTokensTable.expires_at_ms, Date.now()));
|
|
11360
|
+
return rows;
|
|
11361
|
+
},
|
|
11355
11362
|
saveToken: async (token) => {
|
|
11356
11363
|
await db.insert(oauthRefreshTokensTable).values(toRefreshValues(token));
|
|
11357
11364
|
}
|
|
@@ -11447,5 +11454,5 @@ export {
|
|
|
11447
11454
|
createNeonAuthorizationCodeStore
|
|
11448
11455
|
};
|
|
11449
11456
|
|
|
11450
|
-
//# debugId=
|
|
11457
|
+
//# debugId=7E900DCFB0BEE85764756E2164756E21
|
|
11451
11458
|
//# sourceMappingURL=index.js.map
|