Skip to content

Interface: IssueRoomfulTokenOptions

@roomful/next


@roomful/next / IssueRoomfulTokenOptions

Defined in: packages/next/src/index.ts:4

Configures issueRoomfulToken.

optional claims: Record<string, unknown>

Defined in: packages/next/src/index.ts:42

Merges additional claims into the JWT payload.


optional expiresInSeconds: number

Defined in: packages/next/src/index.ts:25

Controls how many seconds from issuedAt the token remains valid.

3600

optional issuedAt: number

Defined in: packages/next/src/index.ts:37

Overrides the iat claim, expressed as a Unix timestamp in seconds.

The current time in seconds.

optional notBeforeSeconds: number

Defined in: packages/next/src/index.ts:30

Delays activation by setting the nbf claim this many seconds after issuedAt.


optional roomId: string

Defined in: packages/next/src/index.ts:18

Sets the roomId claim scoping the token to a room.


secret: string

Defined in: packages/next/src/index.ts:8

Supplies the relay shared secret (the relay --auth-secret) used to sign the token.


optional subject: string

Defined in: packages/next/src/index.ts:13

Sets the sub claim identifying the token subject.