@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.
- package/CHANGELOG.md +10 -0
- package/README.md +32 -0
- package/changelog.json +17 -0
- package/dist/cli/migrate.js +46 -1
- package/dist/cli/migrate.js.map +6 -5
- package/dist/cli/setup.d.ts +12 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +62 -14
- package/dist/index.js.map +8 -7
- package/dist/linkedProviders/credentialError.d.ts +7 -0
- package/dist/linkedProviders/index.d.ts +1 -0
- package/dist/linkedProviders/index.js +57 -10
- package/dist/linkedProviders/index.js.map +6 -5
- package/dist/manifest.js +13 -17
- package/dist/manifest.js.map +3 -3
- package/dist/manifest.json +9 -14
- package/dist/server.js +61 -14
- package/dist/server.js.map +8 -7
- package/dist/session/neonStore.d.ts +4 -0
- package/package.json +1 -1
|
@@ -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