Skip to content

Commit

Permalink
use same as pnm
Browse files Browse the repository at this point in the history
  • Loading branch information
jibon57 committed Sep 27, 2024
1 parent 6efc98d commit 9d5b672
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/models/nats_system.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ func (m *NatsModel) GenerateLivekitToken(roomId string, userInfo *plugnmeet.Nats
IsAdmin: userInfo.IsAdmin,
}

return auth.GenerateLivekitAccessToken(m.app.LivekitInfo.ApiKey, m.app.LivekitInfo.Secret, 3*time.Minute, c)
return auth.GenerateLivekitAccessToken(m.app.LivekitInfo.ApiKey, m.app.LivekitInfo.Secret, *m.app.Client.TokenValidity, c)
}

func (m *NatsModel) HandleClientPing(roomId, userId string) {
Expand Down

0 comments on commit 9d5b672

Please sign in to comment.