Skip to content

RelayCredential

Defined in: relay-sdks/ts/src/connect-session.ts:54

A token together with when the relay stops honoring it. moq-relay ends a session at its grant’s deadline, which is the token’s expiry, and a live session cannot take a new token; supervised connections replace theirs before then.

expiresAt: Date;

Defined in: relay-sdks/ts/src/connect-session.ts:58

When the relay ends a session the token admitted: the JWT’s exp, or the grant’s deadline if it is earlier.


token: string;

Defined in: relay-sdks/ts/src/connect-session.ts:56

The token, carried in the endpoint’s jwt query parameter. An empty one sends no token.