-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issues with refreshing credentials #16
Comments
Hello, I've investigated this and I think I found and fixed the issue! Basically, I added auto token refresh for when access token expires (every 15 minutes). That should make it that you only need to login once and then it will just work without you needing to refresh manually. I also found that Public changes the Please update to |
@NelsonDane Amazing thank you! It totally works, but I'm noticing I'm asked for a 2FA code about every 15 minutes after initial login. Any insight? Thank you! |
Awesome, glad it's starting to work! I'm not sure if this will solve your issue, but I noticed that when logging in it would always do 2FA, regardless if we have valid cookies saved from a previous session. I just pushed |
I'm encountering an error where I can't run my script more than a few times before I get
I assume there needs to be some kind of credentials refresh so I ran
refresh = public.refresh_token()
and I get this error:An error occurred: Portfolio request failed: {"timestamp":"2025-03-04T17:39:03.391+00:00","status":403,"error":"Forbidden","path":"/hstier1service/account/xxx/portfolio"}
Script snippet:
The text was updated successfully, but these errors were encountered: