better-auth-studio 1.1.1-beta.3 → 1.1.1-beta.4
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/cli.js +0 -0
- package/dist/public/assets/{main-BIlYgyPi.js → main-BDwnIMk3.js} +137 -137
- package/dist/public/index.html +1 -1
- package/dist/routes.d.ts.map +1 -1
- package/dist/routes.js +12 -0
- package/dist/routes.js.map +1 -1
- package/dist/studio.d.ts.map +1 -1
- package/dist/studio.js +6 -1
- package/dist/studio.js.map +1 -1
- package/package.json +28 -33
- package/public/assets/{main-BIlYgyPi.js → main-BDwnIMk3.js} +137 -137
- package/public/index.html +1 -1
package/dist/public/index.html
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
<link rel="icon" type="image/png" href="/logo.png" />
|
|
6
6
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
7
7
|
<title>Better Auth Studio</title>
|
|
8
|
-
<script type="module" crossorigin src="/assets/main-
|
|
8
|
+
<script type="module" crossorigin src="/assets/main-BDwnIMk3.js"></script>
|
|
9
9
|
<link rel="stylesheet" crossorigin href="/assets/main-s8HrXBxq.css">
|
|
10
10
|
</head>
|
|
11
11
|
<body>
|
package/dist/routes.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"routes.d.ts","sourceRoot":"","sources":["../src/routes.ts"],"names":[],"mappings":"AAeA,OAAO,EAA+B,MAAM,EAAE,MAAM,SAAS,CAAC;AAU9D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAK9C,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AA0GnE,wBAAsB,oBAAoB,CAAC,cAAc,EAAE,MAAM,EAAE,OAAO,UAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,CAqLhG;AAeD,wBAAgB,YAAY,CAC1B,UAAU,EAAE,UAAU,EACtB,UAAU,CAAC,EAAE,M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,IAAI,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,GAAG,CAAA;KAAE,CAAC,CAAC;CAChE,CAAC,CA+FD"}
|
package/dist/routes.js
CHANGED
|
@@ -5406,6 +5406,12 @@ export const authClient = createAuthClient({
|
|
|
5406
5406
|
});
|
|
5407
5407
|
router.post('/api/tools/write-env-secret', async (req, res) => {
|
|
5408
5408
|
try {
|
|
5409
|
+
if (isSelfHosted) {
|
|
5410
|
+
return res.status(403).json({
|
|
5411
|
+
success: false,
|
|
5412
|
+
message: 'On hosted versions, they are not to write it to file system',
|
|
5413
|
+
});
|
|
5414
|
+
}
|
|
5409
5415
|
const { secret, action = 'override' } = req.body || {};
|
|
5410
5416
|
if (!secret) {
|
|
5411
5417
|
return res.status(400).json({
|
|
@@ -5527,6 +5533,12 @@ export const authClient = createAuthClient({
|
|
|
5527
5533
|
});
|
|
5528
5534
|
router.post('/api/tools/write-env-credentials', async (req, res) => {
|
|
5529
5535
|
try {
|
|
5536
|
+
if (isSelfHosted) {
|
|
5537
|
+
return res.status(403).json({
|
|
5538
|
+
success: false,
|
|
5539
|
+
message: 'On hosted versions, they are not to write it to file system',
|
|
5540
|
+
});
|
|
5541
|
+
}
|
|
5530
5542
|
const { provider, clientId, clientSecret, action = 'override' } = req.body || {};
|
|
5531
5543
|
if (!provider || !clientId || !clientSecret) {
|
|
5532
5544
|
return res.status(400).json({
|