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

Validate the auth token #15

Open
smbl64 opened this issue Sep 20, 2022 · 0 comments
Open

Validate the auth token #15

smbl64 opened this issue Sep 20, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@smbl64
Copy link
Owner

smbl64 commented Sep 20, 2022

Passing a wrong token in auth subcommand can cause failure for other commands. We cannot validate the token fully, because it uses a format known by Humble Bundle.

But since the first part of the token is JWT, we can decode it using base64 to make sure the token is valid to some extent.

@smbl64 smbl64 added the enhancement New feature or request label Sep 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant