Skip to content

nooschain v0.1.0


nooschain / auth/session-tokens / signAuthChallengeForDev

Function: signAuthChallengeForDev()

signAuthChallengeForDev(challenge, privateKey): string

Defined in: auth/session-tokens.ts:97

Development helper used by tests to sign an API login challenge.

Production clients should sign the challengeSigningPayload() object with their own key-management stack instead of passing private keys through API helper code.

Parameters

challenge

Pick<AuthChallenge, "challengeId" | "challenge">

privateKey

string

Returns

string

Audience-first NOOSChain documentation.