createSignedContinuationCodec
API Reference for createSignedContinuationCodec.
createSignedContinuationCodec()
Create an HMAC-SHA-256-signed string continuation codec.
When a run is interrupted, this codec serializes its replay state into a string
and signs it so the state cannot be modified undetected. Pass the codec to
createRunner() when you need custom expiration or signing-key rotation.
The token is signed but not encrypted, so its contents should not be treated as secret.
import { createRunner, createSignedContinuationCodec } from 'run';
const continuationCodec = createSignedContinuationCodec({
secret: process.env.RUN_CONTINUATION_SECRET!,
});
const runner = createRunner({ continuationCodec });Import
import { createSignedContinuationCodec } from 'run';API Signature
Parameters
Prop
Type
Returns
Prop
Type