Closed meelist closed 1 year ago
I've not been able to recreate this using the linked snippets. Is this TS or JS? Do you have a code example that's no longer working?
I am using a ES6 style import in TS which worked fine in v3 since it contains a specific export for VoiceGrant, but the export keyword has been removed in v4 of the package for all the different grant types.
import AccessToken, { VoiceGrant } from 'twilio/lib/jwt/AccessToken';
Ah, I see. Working on a fix ...
Issue Summary
I'm trying to use the latest version 4 of the package and I'm unable to import the VoiceGrant type. It seems that compared to version 3, they are not exported anymore. However the documentation still states that you can/should import it when using access tokens.
https://www.twilio.com/docs/iam/access-tokens
Technical details: