Skip to content

A command-line tool to generate a DoorDash Developer JWT

License

Notifications You must be signed in to change notification settings

infin8x/make-doordash-jwt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

make-doordash-jwt

This simple CLI tool takes a DoorDash Access Key (a JSON object comprised of a developerId, key_id, and signing_secret) and creates a JWT.

How to install

If you have Go installed:

go install github.com/infin8x/make-doordash-jwt

If you don't have Go installed:

  1. Select the latest release from the sidebar on the right (look for "v1.0.[something]")
  2. Download the version appropriate for your system
    1. Tip: darwin-amd64 is probably what you want if you have a Mac; windows-amd64.exe, if you have a Windows machine.

How to use

  1. Create an Access Key in the DoorDash Developer Portal
  2. Click "Copy" to copy your Access Key details
  3. Save them to a file (e.g. key.json) not in source control!
    1. If you downloaded the tool earlier, put key.json in the same directory where you downloaded the tool
  4. Open a shell (terminal) and navigate to the directory where you saved key.json and run the appropriate command from the selection below

Tool installed via go install

make-doordash-jwt -f key.json

Alternatively, you can provide the Access Key directly on the command line. Make sure to surround it with single quotes ("`"). See below for an example:

make-doordash-jwt -o `{
    "developer_id": "14e84291-d900-4c20-8528-ed6ca8de660f",
    "key_id": "d4e87d9c-432b-4ab4-b06f-254ce7a1ef30",
    "signing_secret": "xVu_RIEHqVw0ISBOqklCrKTIrlxX47TiexoJIY8_naw"
  }`

Tool downloaded manually, to a Mac

.\make-doordash-jwt-darwin-amd64 -f key.json

Tool downloaded manually, on Windows

This assumes you're using PowerShell, not cmd.

.\make-doordash-jwt-windows-amd64.exe -f key.json

About

A command-line tool to generate a DoorDash Developer JWT

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages