Preserve original expiry when refreshing token (#4580)

To avoid shortening the token expiration time during
refreshing cause client reconnect failed after network
down for a long time (>5min).
This commit is contained in:
cnderrauber
2026-06-10 14:51:10 +08:00
committed by GitHub
parent 8d2b827f44
commit 7dc6877738
10 changed files with 125 additions and 9 deletions
+1
View File
@@ -218,6 +218,7 @@ func (s *RTCService) validateInternal(
Identity: livekit.ParticipantIdentity(res.grants.Identity),
Name: livekit.ParticipantName(res.grants.Name),
Grants: res.grants,
TokenExpiresAt: res.tokenExpiresAt,
Region: res.region,
CreateRoom: res.createRoomRequest,
UseSinglePeerConnection: useSinglePeerConnection,