Skip to content
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

Incorrect token #11

Closed
uros76 opened this issue Dec 4, 2022 · 9 comments
Closed

Incorrect token #11

uros76 opened this issue Dec 4, 2022 · 9 comments

Comments

@uros76
Copy link

uros76 commented Dec 4, 2022

Hi. I have been using this script successfully for more than half a year but last few days it seems the google authentication token is not accepted anymore.

What I did to try and fix:
I have logged in to earnapp dashboard and collected the token from the cookie. I noticed the token is now much longer. Then I used it in the script the same as before. Still, I get the "Incorrect token" error.

Any idea what could be wrong? Did google change something?

@Woodie-07
Copy link
Owner

Hmm... it seems EarnApp have removed the oauth-refresh-token, so we have to use the oauth-token now. I'll push a fix ASAP.
Screenshot 2022-12-04 at 11 02 17

@Woodie-07
Copy link
Owner

I have published version 0.1.7, try now.

@uros76
Copy link
Author

uros76 commented Dec 4, 2022

Thanks for the quick response. I upgraded to the 0.1.7 version but still get Incorrect token output when I try to pull the balance.

@Woodie-07
Copy link
Owner

Are you sure you're entering the oauth-token from the dashboard? It seemed to work fine in my testing before I pushed the fix.

@uros76
Copy link
Author

uros76 commented Dec 5, 2022

Yes. I am using oath-token from earnapp dashboard
image

@Woodie-07
Copy link
Owner

They have added oauth-refresh-token back, I have updated the library to work with this change. Please try oauth-refresh-token again.

@uros76
Copy link
Author

uros76 commented Dec 9, 2022

Excellent work. Thanks a lot. With 0.1.8 version and oauth-refresh-token it is working again

@uros76 uros76 closed this as completed Dec 9, 2022
@uros76
Copy link
Author

uros76 commented Jan 2, 2023

Hi @Woodie-07. It seems earnapp changed something again 😒 again I am getting incorrect token errors.
This is the current screenshot of the dashboard cookie section. I tried both oath-token and oath-refresh-token and it doesn't work...
image

@Woodie-07
Copy link
Owner

Forgot to reply to this, should be fixed in the latest version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants