@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.mjs CHANGED
@@ -2327,7 +2327,7 @@ var Auth = class {
2327
2327
  }
2328
2328
  if (urlError) {
2329
2329
  error("Unable to log user in", { error: urlError });
2330
- return void 0;
2330
+ return new Response(urlError, { status: signInRes.status });
2331
2331
  }
2332
2332
  }
2333
2333
  if (!token) {
@@ -2518,9 +2518,9 @@ var Users = class {
2518
2518
  res = await verifyEmailAddress(this.#config, me, String(callbackUrl));
2519
2519
  return res;
2520
2520
  } catch {
2521
- this.#logger?.warn(
2522
- "Unable to verify email. The current user's email will be set to verified anyway. Be sure to configure emails for production."
2523
- );
2521
+ const message = "Unable to verify email.";
2522
+ this.#logger?.warn(message);
2523
+ res = new Response(message, { status: 400 });
2524
2524
  }
2525
2525
  if (bypassEmail) {
2526
2526
  res = this.updateSelf({ emailVerified: true }, rawResponse);