MCPcopy Create free account
hub / github.com/clerk/javascript / createTokenSignature

Function createTokenSignature

packages/nextjs/src/server/utils.ts:227–229  ·  view source on GitHub ↗

* Compute a cryptographic signature from a session token and provided secret key. Used to validate that the token has not been modified when transferring between middleware and the Next.js origin.

(token: string, key: string)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

decorateRequestFunction · 0.85
assertTokenSignatureFunction · 0.85

Calls 1

toStringMethod · 0.80

Tested by

no test coverage detected