RemoveParticipant does not seem to revoke the participant's token on LiveKit Cloud

Hi,

We are building 1:1 and group calls on LiveKit Cloud (project p_3wx10lkf1l1, EU data region, Build plan for now). Our backend signs short-lived access tokens (5 minutes, roomJoin for one room, identity = a device id) and manages rooms through RoomService.

Your docs say that on LiveKit Cloud, RemoveParticipant “also immediately revokes their access token”, and that it can be called for a participant who already left to revoke their token. Our test did not show it:

  1. Create a room (CreateRoom), sign a token for identity A, open the signal connection (/rtc) with it: we get a JoinResponse. We close the socket (signalling only, no ICE).
  2. Call RemoveParticipant(room, A). It answers “participant does not exist”.
  3. 15 seconds later, open /rtc again with the same token: we get a JoinResponse again. /rtc/validate also answers 200.
  4. The same for an identity whose token was never used: RemoveParticipant, wait 15 s, the token joins.

With “Automatically create rooms on participant join” off, a token issued before DeleteRoom was refused 15 s after the deletion (404 “requested room does not exist”), as expected — but it still joined when tried within about one second of the deletion.

Questions:

  1. Does RemoveParticipant revoke tokens on LiveKit Cloud, and on which plans? Does it apply only to participants that were fully connected (media up), or also to one that only opened the signal connection, already left, or never connected?
  2. If it does, how long does it take to apply across regions?
  3. Is there a supported way to invalidate all outstanding tokens of one identity in a room, including the tokens LiveKit refreshed for a connected client? For example, rejecting tokens issued before a given time.
  4. How long do refreshed tokens live, and are they revoked together with the original?
  5. After DeleteRoom with room auto-create off, what is the expected delay before every node refuses joins to that room?

Thank you!

Hi,

I believe this is caused by the one-minute buffer, and you need to pass revoke_token_ts, both as detailed at https://docs.livekit.io/intro/basics/rooms-participants-tracks/participants/#removeparticipant-revoke-token-ts

Please find below answers to your questions in the abstract, but I can look at the server logs for a specific failed session ID if you still have questions

Yes, and it applies to all plans and any participant identity. The docs link I gave above is the best resource, Participant management | LiveKit Documentation as it lists how this works, and please note the information at https://docs.livekit.io/intro/basics/rooms-participants-tracks/participants/#removeparticipant-revoke-token-ts.

We don’t offer any guarantees, but others on this forum have reported the time range to be in the ms

If you set the ttl of the original token to 10 minutes and remove the participant with revoke_token_ts it will ensure the client can’t rejoin a room with a refreshed token

Please see here: https://docs.livekit.io/frontends/reference/tokens-grants/#token-refresh

We don’t guarantee a cross-region delay for DeleteRoom, but I would expect this to be in the ms range also.