smbl64 / humble-cli

📦 The missing CLI for downloading your Humble Bundle purchases

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Validate the auth token

smbl64 opened this issue · comments

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.