authhero 0.279.0 → 0.280.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/authhero.mjs CHANGED
@@ -24725,11 +24725,11 @@ async function pk(t, e) {
24725
24725
  );
24726
24726
  if (r) {
24727
24727
  if (r.expires_at && new Date(r.expires_at) < /* @__PURE__ */ new Date() || r.idle_expires_at && new Date(r.idle_expires_at) < /* @__PURE__ */ new Date())
24728
- throw Sg(t, `Refresh token has expired: ${e.refresh_token}`), new D(403, {
24728
+ throw Sg(t, `Refresh token has expired: ${e.refresh_token}`), new D(400, {
24729
24729
  error: "invalid_grant",
24730
24730
  error_description: "Refresh token has expired"
24731
24731
  });
24732
- } else throw Sg(t, `Invalid refresh token: ${e.refresh_token}`), new D(403, {
24732
+ } else throw Sg(t, `Invalid refresh token: ${e.refresh_token}`), new D(400, {
24733
24733
  error: "invalid_grant",
24734
24734
  error_description: "Invalid refresh token"
24735
24735
  });