auth 1.6.14 → 1.6.16
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/index.mjs +3 -0
- package/package.json +5 -5
package/dist/index.mjs
CHANGED
|
@@ -2009,6 +2009,8 @@ function sanitizeBetterAuthConfig(config) {
|
|
|
2009
2009
|
const sanitized = JSON.parse(JSON.stringify(config));
|
|
2010
2010
|
const sensitiveKeys = [
|
|
2011
2011
|
"secret",
|
|
2012
|
+
"secrets",
|
|
2013
|
+
"secretKey",
|
|
2012
2014
|
"clientSecret",
|
|
2013
2015
|
"clientId",
|
|
2014
2016
|
"authToken",
|
|
@@ -2062,6 +2064,7 @@ function sanitizeBetterAuthConfig(config) {
|
|
|
2062
2064
|
const lowerSensitiveKey = sensitiveKey.toLowerCase();
|
|
2063
2065
|
return lowerKey === lowerSensitiveKey || lowerKey.endsWith(lowerSensitiveKey);
|
|
2064
2066
|
})) if (typeof value === "string" && value.length > 0) result[key] = "[REDACTED]";
|
|
2067
|
+
else if (Array.isArray(value)) result[key] = "[REDACTED]";
|
|
2065
2068
|
else if (typeof value === "object" && value !== null) result[key] = redactSensitive(value, key);
|
|
2066
2069
|
else result[key] = value;
|
|
2067
2070
|
else result[key] = redactSensitive(value, key);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "auth",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.16",
|
|
4
4
|
"description": "The CLI for Better Auth",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -60,9 +60,9 @@
|
|
|
60
60
|
"semver": "^7.7.4",
|
|
61
61
|
"yocto-spinner": "^0.2.3",
|
|
62
62
|
"zod": "^4.3.6",
|
|
63
|
-
"@better-auth/core": "1.6.
|
|
64
|
-
"@better-auth/telemetry": "1.6.
|
|
65
|
-
"better-auth": "1.6.
|
|
63
|
+
"@better-auth/core": "1.6.16",
|
|
64
|
+
"@better-auth/telemetry": "1.6.16",
|
|
65
|
+
"better-auth": "1.6.16"
|
|
66
66
|
},
|
|
67
67
|
"devDependencies": {
|
|
68
68
|
"@types/better-sqlite3": "^7.6.13",
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
"tsx": "^4.21.0",
|
|
76
76
|
"type-fest": "^5.4.4",
|
|
77
77
|
"typescript": "^5.9.3",
|
|
78
|
-
"@better-auth/passkey": "1.6.
|
|
78
|
+
"@better-auth/passkey": "1.6.16"
|
|
79
79
|
},
|
|
80
80
|
"scripts": {
|
|
81
81
|
"build": "tsdown",
|