@better-auth/api-key 1.5.0-beta.20 → 1.5.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/dist/client.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "./schema-D2f7--fy.mjs";
|
|
2
2
|
import { ApiKey, ApiKeyConfigurationOptions, ApiKeyOptions } from "./types.mjs";
|
|
3
|
-
import { t as API_KEY_ERROR_CODES } from "./error-codes-
|
|
3
|
+
import { t as API_KEY_ERROR_CODES } from "./error-codes-xCoIeQ-k.mjs";
|
|
4
4
|
import { apiKey } from "./index.mjs";
|
|
5
5
|
import * as better_auth0 from "better-auth";
|
|
6
6
|
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ApiKeyConfigurationOptions } from "./types.mjs";
|
|
2
2
|
import * as better_auth0 from "better-auth";
|
|
3
|
+
import "zod";
|
|
3
4
|
import "better-call";
|
|
4
5
|
import { Awaitable } from "@better-auth/core";
|
|
5
6
|
|
|
@@ -46,4 +47,4 @@ declare const API_KEY_ERROR_CODES: {
|
|
|
46
47
|
};
|
|
47
48
|
//#endregion
|
|
48
49
|
export { PredefinedApiKeyOptions as n, API_KEY_ERROR_CODES as t };
|
|
49
|
-
//# sourceMappingURL=error-codes-
|
|
50
|
+
//# sourceMappingURL=error-codes-xCoIeQ-k.d.mts.map
|
package/dist/index.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "./schema-D2f7--fy.mjs";
|
|
2
2
|
import { ApiKey, ApiKeyConfigurationOptions, ApiKeyOptions } from "./types.mjs";
|
|
3
|
-
import { n as PredefinedApiKeyOptions, t as API_KEY_ERROR_CODES } from "./error-codes-
|
|
3
|
+
import { n as PredefinedApiKeyOptions, t as API_KEY_ERROR_CODES } from "./error-codes-xCoIeQ-k.mjs";
|
|
4
4
|
import * as better_auth0 from "better-auth";
|
|
5
5
|
import * as zod from "zod";
|
|
6
6
|
import * as better_call0 from "better-call";
|
|
@@ -165,6 +165,7 @@ declare function apiKey(_configurations?: (ApiKeyConfigurationOptions & ApiKeyOp
|
|
|
165
165
|
internalAdapter: better_auth0.InternalAdapter<better_auth0.BetterAuthOptions>;
|
|
166
166
|
createAuthCookie: (cookieName: string, overrideAttributes?: Partial<better_call0.CookieOptions> | undefined) => better_auth0.BetterAuthCookie;
|
|
167
167
|
secret: string;
|
|
168
|
+
secretConfig: string | better_auth0.SecretConfig;
|
|
168
169
|
sessionConfig: {
|
|
169
170
|
updateAge: number;
|
|
170
171
|
expiresIn: number;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@better-auth/api-key",
|
|
3
|
-
"version": "1.5.0
|
|
3
|
+
"version": "1.5.0",
|
|
4
4
|
"description": "API Key plugin for Better Auth.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -60,13 +60,13 @@
|
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
62
|
"tsdown": "^0.20.3",
|
|
63
|
-
"@better-auth/core": "1.5.0
|
|
64
|
-
"better-auth": "1.5.0
|
|
63
|
+
"@better-auth/core": "1.5.0",
|
|
64
|
+
"better-auth": "1.5.0"
|
|
65
65
|
},
|
|
66
66
|
"peerDependencies": {
|
|
67
67
|
"@better-auth/utils": "0.3.1",
|
|
68
|
-
"@better-auth/core": "1.5.0
|
|
69
|
-
"better-auth": "1.5.0
|
|
68
|
+
"@better-auth/core": "1.5.0",
|
|
69
|
+
"better-auth": "1.5.0"
|
|
70
70
|
},
|
|
71
71
|
"scripts": {
|
|
72
72
|
"build": "tsdown",
|