deesse 0.1.5 → 0.1.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/auth/index.d.ts +2 -2
- package/dist/auth/index.js +5 -5
- package/package.json +1 -1
package/dist/auth/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Pool } from "pg";
|
|
2
2
|
import { Config } from "../config/types";
|
|
3
|
-
export declare const
|
|
3
|
+
export declare const createAuth: (config: Config) => import("better-auth").Auth<{
|
|
4
4
|
secret: string | undefined;
|
|
5
5
|
appName?: string | undefined;
|
|
6
6
|
baseURL?: string | undefined;
|
|
@@ -335,7 +335,7 @@ export declare const auth: (config: Config) => import("better-auth").Auth<{
|
|
|
335
335
|
};
|
|
336
336
|
database: Pool;
|
|
337
337
|
}>;
|
|
338
|
-
export declare const
|
|
338
|
+
export declare const createAuthClient: () => {
|
|
339
339
|
signIn: {
|
|
340
340
|
social: <FetchOptions extends import("better-auth").ClientFetchOption<Partial<{
|
|
341
341
|
provider: "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "huggingface" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linear" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "vercel" | (string & {});
|
package/dist/auth/index.js
CHANGED
|
@@ -14,19 +14,19 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.
|
|
17
|
+
exports.createAuthClient = exports.createAuth = void 0;
|
|
18
18
|
const better_auth_1 = require("better-auth");
|
|
19
19
|
const react_1 = require("better-auth/react");
|
|
20
20
|
const pg_1 = require("pg");
|
|
21
|
-
const
|
|
21
|
+
const createAuth = (config) => (0, better_auth_1.betterAuth)({
|
|
22
22
|
database: new pg_1.Pool({
|
|
23
23
|
connectionString: config.databaseUrl,
|
|
24
24
|
}),
|
|
25
25
|
...config.auth,
|
|
26
26
|
secret: process.env.DEESSE_SECRET,
|
|
27
27
|
});
|
|
28
|
-
exports.
|
|
29
|
-
const
|
|
30
|
-
exports.
|
|
28
|
+
exports.createAuth = createAuth;
|
|
29
|
+
const createAuthClient = () => (0, react_1.createAuthClient)();
|
|
30
|
+
exports.createAuthClient = createAuthClient;
|
|
31
31
|
__exportStar(require("better-auth"), exports);
|
|
32
32
|
__exportStar(require("better-auth/next-js"), exports);
|