AgoraIO/Tools

go RtcTokenBuilder vs rtctokenbuilder2

seinshah opened this issue · 1 comments

What's the actual difference between rtc token builder version 1 and 2?
I see that v2 allows for more granular config on the token, however, as I tested, the rtc token generated with v2 was no longer valid when clients used it for authentication.
They got 110 : The authentication token for joining the rtc channel is wrong

The main questions are:

  • Where can I read about the different between these two versions?
  • When someone should use rtctokenbuilder2 instead of RtcTokenBuilder?

This was a client error. Please ignore.