We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e8fee92 commit c9e58faCopy full SHA for c9e58fa
1 file changed
src/systemathics/apis/helpers/token_helpers.py
@@ -78,7 +78,7 @@ def _create_bearer_token_using_rest(client_id, client_secret, audience, tenant)
78
# Get access token to be used to authenticate against API
79
try:
80
token = f"{json_data['token_type']} {json_data['access_token']}"
81
- os.environment['AUTH0_TOKEN'] = token #
+ os.environ['AUTH0_TOKEN'] = json_data['access_token'] # Push to environment
82
return token
83
except Exception as ee:
84
raise Exception(f"Returned JSON doesn't contain 'token_type' and/or 'access_token'. Check your client ID, client secret, audience and tenant: {json_data}")
0 commit comments