LiveKit JS Server SDK - v2.20.1
    Preparing search index...

    Type Alias TokenProvider

    TokenProvider: (grants: TokenGrants) => Promise<string>

    Returns a token that carries the given grants, for a client to send in place of one it signs itself. The client calls it before each request with the grants that request needs, so the provider can cache and refresh tokens.

    Type Declaration