@absolutejs/auth 0.79.0 → 0.80.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.
@@ -1,3 +1,4 @@
1
+ import type { AnyPgDatabase } from '../stores/postgres';
1
2
  import type { JsonObject } from '../types';
2
3
  import type { AuthSessionStore, SessionUserDecoder } from './types';
3
4
  export declare const authSessionsTable: import("drizzle-orm/pg-core").PgTableWithColumns<{
@@ -571,4 +572,7 @@ export declare const authSessionSchema: {
571
572
  }>;
572
573
  };
573
574
  export type AuthSessionSchema = typeof authSessionSchema;
575
+ /** Convenience adapter for Neon HTTP. Use createPostgresAuthSessionStore with
576
+ * your existing Drizzle client for Bun SQL, node-postgres, or postgres.js. */
574
577
  export declare const createNeonAuthSessionStore: <UserType>(databaseUrl: string, decodeUser: SessionUserDecoder<UserType>) => AuthSessionStore<UserType>;
578
+ export declare const createPostgresAuthSessionStore: <UserType, DB extends AnyPgDatabase>(db: DB, decodeUser: SessionUserDecoder<UserType>) => AuthSessionStore<UserType>;
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.79.0",
2
+ "version": "0.80.0",
3
3
  "name": "@absolutejs/auth",
4
4
  "description": "An authorization library for absolutejs",
5
5
  "repository": {