Skip to content

Commit

Permalink
refactor: testing..
Browse files Browse the repository at this point in the history
  • Loading branch information
origox committed Dec 29, 2023
1 parent f0a5e6f commit 97e72a6
Show file tree
Hide file tree
Showing 2 changed files with 468 additions and 383 deletions.
6 changes: 3 additions & 3 deletions app/auth/get_authorization_code.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,12 +113,12 @@ def main():

# Save the access token and refresh token
credentials = dict(
client_id=os.getenv(key="FITBIT_CLIENT_ID"),
client_secret=os.getenv(key="FITBIT_CLIENT_SECRET"),
# client_id=os.getenv(key="FITBIT_CLIENT_ID"),
# client_secret=os.getenv(key="FITBIT_CLIENT_SECRET"),
access_token=access_token,
refresh_token=refresh_token,
)
json.dump(credentials, open("auth/fitbit.json", "w"))
json.dump(credentials, open(os.getenv(key="FITBIT_TOKEN_FILE_PATH"), "w"))


if __name__ == "__main__":
Expand Down
Loading

0 comments on commit 97e72a6

Please sign in to comment.