Skip to content

Function: fetchRoomfulToken()

@roomful/next


@roomful/next / fetchRoomfulToken

fetchRoomfulToken(endpoint, init?): Promise<string>

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

Fetches a Roomful token from a token endpoint created with createRoomfulTokenRoute.

Use the returned token as the core client’s relayAuth option.

string

The token endpoint URL.

RequestInit

Optional fetch init (for example, method, headers, or a body).

Promise<string>

The token string.

When the response is not ok or omits a string token.