Update Chat JS SDK to 0.12, remove endpoint from Chat Grant for token
This commit is contained in:
2
app.py
2
app.py
@@ -79,7 +79,7 @@ def token():
|
||||
|
||||
# Create an Chat grant and add to token
|
||||
if chat_service_sid:
|
||||
chat_grant = IpMessagingGrant(endpoint_id=endpoint, service_sid=chat_service_sid)
|
||||
chat_grant = IpMessagingGrant(service_sid=chat_service_sid)
|
||||
token.add_grant(chat_grant)
|
||||
|
||||
# Return token info as JSON
|
||||
|
||||
Reference in New Issue
Block a user