Function: tokenAuth()
ts
function tokenAuth(options): (request, scope) => Promise<Response | Authenticated>;Defined in: server/tokens.ts:140
An authenticate function for routeToRoom and routeToMatchmaker that accepts signed join tokens. The client connects with ?token=...; plain HTTP requests may send Authorization: Bearer ... instead.
Parameters
| Parameter | Type |
|---|---|
options | TokenAuthOptions |
Returns
(request, scope) => Promise<Response | Authenticated>