Skip to main content

Interface: JWTAuthResult

Defined in: service-core/src/auth/JWTStrategy.ts:43

Result returned by JWTStrategy.authenticate().

Extends

Properties

data?

optional data?: any

Defined in: service-core/src/auth/AuthStrategy.ts:13

The raw auth data that was verified.

Inherited from

AuthResult.data


method

method: string

Defined in: service-core/src/auth/AuthStrategy.ts:15

The name of the auth strategy that produced this result.

Inherited from

AuthResult.method


payload?

optional payload?: any

Defined in: service-core/src/auth/AuthStrategy.ts:17

The fully decoded payload from the auth data.

Inherited from

AuthResult.payload


state?

optional state?: string

Defined in: service-core/src/auth/AuthStrategy.ts:22

Client-supplied app-correlation data extracted from the state round-trip, if any (see OAuthStrategy's combined state/CSRF design). Available to route handlers via @AuthResult.

Inherited from

AuthResult.state


tokenFound?

optional tokenFound?: boolean

Defined in: service-core/src/auth/JWTStrategy.ts:50

true when at least one credential (header, query param, or cookie) was present in the request, even if it was ultimately invalid. Distinguishes "no token submitted" from "bad token submitted" — useful for deciding whether to reject early vs. fall through to an alternative auth path (e.g. WebSocket message-based LOGIN).


user?

optional user?: JWTUser

Defined in: service-core/src/auth/AuthStrategy.ts:24

The authenticated user profile, or undefined if authentication failed.

Inherited from

AuthResult.user