You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 15, 2024. It is now read-only.
the problem is caused by the TS interference bugs, which are solved in thiscommit
but that there are no releases after that commit, so I can't use them,
instead, I solved the problem by rolling back to version 3.19.1, which doesn't have any TS files
This is the code I use:
`function generateToken(iden,room){
const AccessToken = twilio.jwt.AccessToken;
const token = new AccessToken(
envconf.twilio.sid,
envconf.twilio.apikey,
envconf.twilio.apisecret,
)
token.identity = iden;
const grant = new twilio.jwt.AccessToken.VideoGrant()
token.addGrant(grant);
return token.toJwt();
}`
and TSLint says AccessToken does not have identity
also says toJwt() needs an argument!
The text was updated successfully, but these errors were encountered: