better-auth-studio 1.0.79-beta.11 → 1.0.79-beta.13
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/core/handler.js +81 -32
- package/dist/core/handler.js.map +1 -1
- package/dist/public/assets/main-C0mBl_hH.css +1 -0
- package/dist/public/assets/{main-3NIBCudD.js → main-_2wvl-u1.js} +60 -60
- package/dist/public/index.html +2 -2
- package/dist/routes.js +1 -0
- package/dist/routes.js.map +1 -1
- package/package.json +30 -29
- package/public/assets/main-C0mBl_hH.css +1 -0
- package/public/assets/{main-3NIBCudD.js → main-_2wvl-u1.js} +60 -60
- package/public/index.html +2 -2
- package/dist/public/assets/main-DbXDm13A.css +0 -1
- package/public/assets/main-DbXDm13A.css +0 -1
package/dist/public/index.html
CHANGED
|
@@ -5,8 +5,8 @@
|
|
|
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-
|
|
9
|
-
<link rel="stylesheet" crossorigin href="/assets/main-
|
|
8
|
+
<script type="module" crossorigin src="/assets/main-_2wvl-u1.js"></script>
|
|
9
|
+
<link rel="stylesheet" crossorigin href="/assets/main-C0mBl_hH.css">
|
|
10
10
|
</head>
|
|
11
11
|
<body>
|
|
12
12
|
<div id="root"></div>
|
package/dist/routes.js
CHANGED
|
@@ -525,6 +525,7 @@ export function createRoutes(authConfig, configPath, geoDbPath, preloadedAdapter
|
|
|
525
525
|
const userRole = users[0].role;
|
|
526
526
|
const user = { id: userId, email: users[0].email, name: users[0].name, role: userRole };
|
|
527
527
|
const allowedRoles = getAllowedRoles();
|
|
528
|
+
console.log({ user, allowedRoles, credentialAccount });
|
|
528
529
|
if (!allowedRoles.includes(user.role)) {
|
|
529
530
|
return res.status(403).json({
|
|
530
531
|
success: false,
|