fix: callbacks cleanup and credential timestamp validation (#1669)
Release NapCat / validate-version (push) Canceled after 0s
Release NapCat / Build-Framework (push) Canceled after 0s
Release NapCat / Build-Shell (push) Canceled after 0s
Release NapCat / Download-QNX64 (push) Canceled after 0s
Release NapCat / release-napcat (push) Canceled after 0s

* fix(rpc): clean callbacks when sending failed

* chore: format

* fix(pty): handle ws message properly

* fix(webui-backend): unify credential timestamp validation

Store credential CreatedTime in seconds and validate expiry using the same unit. Keep backward compatibility for legacy millisecond timestamps.

* chore: format

* Revert "chore: format"

This reverts commit 6f2e9f1b53b55e8f4bf4a747ed7b05a0d6e4dbb4.

* fix: naming

Rename ONE_HOUR_SECONDS to MAX_CREDENTIAL_VALID_SECONDS for clearer intent. Simplify CreatedTime parsing by using Math.floor(Number(...)) and remove the legacy millisecond-to-second conversion branch. Update the time-difference check to use the new constant name.
This commit is contained in:
水化 authored and GitHub committed 2026-03-04 19:03:21 +08:00
1 parent 7b58681b2b
commit cf80c787c3
4 files changed
+39 -10

No files matched your search

+10 -1
View File
@@ -1,2 +1,11 @@
packages:
- 'packages/*'
- packages/*
onlyBuiltDependencies:
- '@heroui/shared-utils'
- '@homebridge/node-pty-prebuilt-multiarch'
- '@swc/core'
- esbuild
- sharp
- ttf2woff2
- unrs-resolver