Skip to content

Documentation / @super-line/core / AuthOutcome

Type Alias: AuthOutcome ​

AuthOutcome = object

Defined in: packages/core/src/transport.ts:52

What authenticate returns. Reject by throwing — the transport then rejects in its native idiom. transport is injected by the server (from Handshake.transport); user authenticate callbacks return role + ctx, and optionally env (the initial client-visible per-connection state seeded at connect; ADR-0012). ctx is server-only + frozen; env is client-visible + mutable.

Properties ​

connectionId? ​

optional connectionId?: string

Defined in: packages/core/src/transport.ts:52


ctx ​

ctx: unknown

Defined in: packages/core/src/transport.ts:52


env? ​

optional env?: unknown

Defined in: packages/core/src/transport.ts:52


role ​

role: string

Defined in: packages/core/src/transport.ts:52


transport? ​

optional transport?: string

Defined in: packages/core/src/transport.ts:52

Released under the MIT License.