@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/README.md +29 -1
- package/dist/hono.cjs +5 -1
- package/dist/hono.cjs.map +1 -1
- package/dist/hono.js +5 -1
- package/dist/hono.js.map +1 -1
- package/dist/index.cjs +98 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +48 -1
- package/dist/index.d.ts +48 -1
- package/dist/index.js +98 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
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
|
-
|
|
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",
|