Skip to content

Commit c9e58fa

Browse files
µfix
1 parent e8fee92 commit c9e58fa

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/systemathics/apis/helpers/token_helpers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def _create_bearer_token_using_rest(client_id, client_secret, audience, tenant)
7878
# Get access token to be used to authenticate against API
7979
try:
8080
token = f"{json_data['token_type']} {json_data['access_token']}"
81-
os.environment['AUTH0_TOKEN'] = token #
81+
os.environ['AUTH0_TOKEN'] = json_data['access_token'] # Push to environment
8282
return token
8383
except Exception as ee:
8484
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

Comments
 (0)