Add named parameter for identity to access token

This commit is contained in:
Jeffrey Linwood
2017-03-30 21:11:42 -05:00
parent 0efbb977dc
commit 74105f5d82

2
app.py
View File

@@ -65,7 +65,7 @@ def token():
identity = fake.user_name()
# Create access token with credentials
token = AccessToken(account_sid, api_key, api_secret, identity)
token = AccessToken(account_sid, api_key, api_secret, identity=identity)
# Create a Sync grant and add to token
if sync_service_sid: