jsdelivr / globalping-cli

A simple CLI tool to run networking commands remotely from hundreds of globally distributed servers
Mozilla Public License 2.0
129 stars 14 forks source link

Add auth support via ENV #42

Closed jimaek closed 2 months ago

jimaek commented 1 year ago

To support our upcoming API keys we need a few changes:

MartinKolarik commented 2 months ago

@radulucut let's start by adding support for GLOBALPING_TOKEN variable, and I'll specify the rest of the interface to add a little later. The token is sent as Authorization: Bearer YOUR-TOKEN (docs). You can ping me by Slack/mail, and I'll send you some actual tokens for testing.