better-auth-studio 1.0.79-beta.44 → 1.0.79-beta.46

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.
@@ -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-ZSnQyEBZ.js"></script>
8
+ <script type="module" crossorigin src="/assets/main-D8LhxAuO.js"></script>
9
9
  <link rel="stylesheet" crossorigin href="/assets/main-BjWPiv1k.css">
10
10
  </head>
11
11
  <body>
package/dist/routes.js CHANGED
@@ -1107,7 +1107,7 @@ export function createRoutes(authConfig, configPath, geoDbPath, preloadedAdapter
1107
1107
  if (!adapter.update) {
1108
1108
  return res.status(500).json({ error: 'Auth adapter update method not available' });
1109
1109
  }
1110
- // Find the credential account first to get its unique id
1110
+ // Find the credential account first to get its unique id (fixes Prisma error)
1111
1111
  let credentialAccount = null;
1112
1112
  if (adapter.findFirst) {
1113
1113
  credentialAccount = await adapter.findFirst({
@@ -1129,7 +1129,7 @@ export function createRoutes(authConfig, configPath, geoDbPath, preloadedAdapter
1129
1129
  credentialAccount = accounts && accounts.length > 0 ? accounts[0] : null;
1130
1130
  }
1131
1131
  if (!credentialAccount) {
1132
- return res.status(404).json({ error: 'Credential account not found for this user' });
1132
+ return res.status(404).json({ error: 'Credential account not found' });
1133
1133
  }
1134
1134
  let hashedPassword = password;
1135
1135
  try {