MCPcopy Index your code
hub / github.com/simstudioai/sim / signPayload

Function signPayload

apps/sim/lib/core/security/deployment.ts:14–16  ·  view source on GitHub ↗

* Shared authentication utilities for deployed chat endpoints. * Handles token generation, validation, and auth cookies. CORS for these * endpoints lives in proxy.ts as the single source of truth.

(payload: string)

Source from the content-addressed store, hash-verified

12 */
13
14function signPayload(payload: string): string {
15 return hmacSha256Hex(payload, env.BETTER_AUTH_SECRET)
16}
17
18function passwordSlot(encryptedPassword?: string | null): string {
19 if (!encryptedPassword) return ''

Callers 2

generateAuthTokenFunction · 0.85
validateAuthTokenFunction · 0.85

Calls 1

hmacSha256HexFunction · 0.90

Tested by

no test coverage detected