@astrale-os/sdk 0.6.0-beta.51 → 0.6.0-beta.53
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.
|
@@ -179,6 +179,11 @@ async function establishCaller(input, audience, verification, execution, policy)
|
|
|
179
179
|
if (cause instanceof IssuerUnavailable) {
|
|
180
180
|
throw protocolError('BACKEND_UNAVAILABLE', 'Credential issuer is unavailable.');
|
|
181
181
|
}
|
|
182
|
+
// jose checks expiry only after a trusted key verified the signature, so this names the bound
|
|
183
|
+
// of authentic evidence, as the Kernel does for its own credentials.
|
|
184
|
+
if (cause instanceof joseErrors.JWTExpired) {
|
|
185
|
+
throw protocolError('AUTH_INVALID', 'Credential has expired.');
|
|
186
|
+
}
|
|
182
187
|
if (cause instanceof CredentialRejected ||
|
|
183
188
|
cause instanceof AuthValueError ||
|
|
184
189
|
cause instanceof joseErrors.JOSEError ||
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/** Generated from the Kernel Schema of @astrale-os/kernel-core 1.0.0-beta.
|
|
1
|
+
/** Generated from the Kernel Schema of @astrale-os/kernel-core 1.0.0-beta.34, reduced to its Classes. Regenerate with pnpm sync:kernel-schema. */
|
|
2
2
|
export declare const kernelCompiledSchema: string;
|