@broberg/sso 0.12.0 → 0.13.0

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/hono.js CHANGED
@@ -907,7 +907,11 @@ function ssoRoutes(options = {}) {
907
907
  message: "This browser's login cookie could not be read. Begin again from the login page."
908
908
  }
909
909
  };
910
- await onCallbackRefused(parsed.reason, c);
910
+ try {
911
+ await onCallbackRefused(parsed.reason, c);
912
+ } catch (err) {
913
+ console.error("[@broberg/sso] onCallbackRefused threw; the refusal stands", err);
914
+ }
911
915
  const shown = callbackErrors === "single" && parsed.reason !== "absent" ? {
912
916
  status: 400,
913
917
  error: "login_failed",