Skip to content

nooschain v0.1.0


nooschain / auth/auth-types / AuthChallenge

Interface: AuthChallenge

Defined in: auth/auth-types.ts:17

One-time login challenge returned by /auth/challenge.

The caller signs challengeId and challenge with the private key corresponding to publicKey, then submits that signature to /auth/login. Challenges are short lived and become invalid after successful login.

Properties

challenge

challenge: string

Defined in: auth/auth-types.ts:23

Random challenge bytes encoded as a string safe for JSON transport.


challengeId

challengeId: string

Defined in: auth/auth-types.ts:19

Opaque identifier used to find the stored challenge during login.


expiresAt

expiresAt: string

Defined in: auth/auth-types.ts:25

ISO timestamp after which login with this challenge is refused.


publicKey

publicKey: string

Defined in: auth/auth-types.ts:21

Public key that must verify the login signature.

Audience-first NOOSChain documentation.