MCPcopy Create free account
hub / github.com/middleapi/orpc / signDurableIteratorToken

Function signDurableIteratorToken

packages/durable-iterator/src/schemas.ts:20–22  ·  view source on GitHub ↗
(secret: string, payload: DurableIteratorTokenPayload)

Source from the content-addressed store, hash-verified

18 * Signs and encodes a token payload.
19 */
20export function signDurableIteratorToken(secret: string, payload: DurableIteratorTokenPayload): Promise<string> {
21 return sign(stringifyJSON(payload), secret)
22}
23
24/**
25 * Verifies a token and returns the payload if valid.

Callers 5

thenMethod · 0.90
schemas.test.tsFile · 0.90
iterator.test.tsFile · 0.90
upgrade.test.tsFile · 0.90
object.test.tsFile · 0.90

Calls 2

signFunction · 0.90
stringifyJSONFunction · 0.90

Tested by

no test coverage detected