@niledatabase/server 5.0.0-alpha.8 → 5.0.0-alpha.9

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.js CHANGED
@@ -2333,7 +2333,7 @@ var Auth = class {
2333
2333
  }
2334
2334
  if (urlError) {
2335
2335
  error("Unable to log user in", { error: urlError });
2336
- return void 0;
2336
+ return new Response(urlError, { status: signInRes.status });
2337
2337
  }
2338
2338
  }
2339
2339
  if (!token) {
@@ -2524,9 +2524,9 @@ var Users = class {
2524
2524
  res = await verifyEmailAddress(this.#config, me, String(callbackUrl));
2525
2525
  return res;
2526
2526
  } catch {
2527
- this.#logger?.warn(
2528
- "Unable to verify email. The current user's email will be set to verified anyway. Be sure to configure emails for production."
2529
- );
2527
+ const message = "Unable to verify email.";
2528
+ this.#logger?.warn(message);
2529
+ res = new Response(message, { status: 400 });
2530
2530
  }
2531
2531
  if (bypassEmail) {
2532
2532
  res = this.updateSelf({ emailVerified: true }, rawResponse);