Skip to content

@keymaster/connect / ConnectResumeResult

Interface: ConnectResumeResult ​

connect.resume 成功结果。

设计缘由:与 connect.login 对称——返回 sessionId + owner + claimsSnapshot 三元组。claimsSnapshot 是 connect.login 时已落库的真值快照;resume 不重新 跑 identity.get,避免 popup unlock 后还要走人工确认。

关键(施工单 2026-06-28 002 硬切换):不再返回 ownerKeyId。

Properties overview ​

PropertyTypeRequiredDescription
connectSessionIdstringYes—
ownerPublicKeyHexstringYes—
resolvedClaimsRecord<string, ResolvedClaimValue>Yes—
resolvedAtnumberYes解析时间——本次 resume 时间戳,不是 connect.login 时的快照时间。
appIdentity?VerifiedAppIdentityNo—

Properties ​

connectSessionId ​

connectSessionId: string


ownerPublicKeyHex ​

ownerPublicKeyHex: string


resolvedClaims ​

resolvedClaims: Record<string, ResolvedClaimValue>


resolvedAt ​

resolvedAt: number

解析时间——本次 resume 时间戳,不是 connect.login 时的快照时间。 给 caller 用来做"是否要重新登录"的客户端超时策略。


appIdentity? ​

optional appIdentity?: VerifiedAppIdentity

使用能力,不托管私钥。