# RelayCredential

URL: https://www.caprid.com/docs/reference/typescript/caprid/relay/index/interfaces/relaycredential/

Defined in: [relay-sdks/ts/src/connect-session.ts:54](https://github.com/caprids/relay-sdks/blob/main/ts/src/connect-session.ts#L54)

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.

## Properties

### expiresAt

```ts
expiresAt: Date;
```

Defined in: [relay-sdks/ts/src/connect-session.ts:58](https://github.com/caprids/relay-sdks/blob/main/ts/src/connect-session.ts#L58)

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

***

### token

```ts
token: string;
```

Defined in: [relay-sdks/ts/src/connect-session.ts:56](https://github.com/caprids/relay-sdks/blob/main/ts/src/connect-session.ts#L56)

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