-
Notifications
You must be signed in to change notification settings - Fork 550
Closed
Labels
status: help wantedrequesting help from the communityrequesting help from the communitytype: bugbug in the librarybug in the librarytype: community enhancementfeature request not on Twilio's roadmapfeature request not on Twilio's roadmap
Description
Issue Summary
When creating a new AccessToken object, "identity" is an optional parameter of the options object.
https://www.twilio.com/docs/libraries/reference/twilio-node/3.47.0/AccessToken.html
According to the documentation here (and my testing), all access tokens require the following:
- A Twilio Account SID, which is the public identifier of the Twilio account associated with the Access Token.
- An API Key SID, which is the public identifier of the key used to sign the token.
- An Identity grant, which sets the Twilio user identifier for the client holding the token.
- The API Key Secret associated with the API Key SID is used to sign the Access Token and verify that it is associated with your Twilio account.
I believe identity should be required in the constructor, since that is a breaking change the documentation should at least be updated
Technical details:
- twilio-node version: 3.47.0
shawntax and tsimbalar
Metadata
Metadata
Assignees
Labels
status: help wantedrequesting help from the communityrequesting help from the communitytype: bugbug in the librarybug in the librarytype: community enhancementfeature request not on Twilio's roadmapfeature request not on Twilio's roadmap