Validate the auth token
smbl64 opened this issue · comments
Mohammad Banisaeid commented
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.