Demo of generating a JWT and authenticating with Ghost's Admin API.
- Save
ghost-auth.rblocally gem install httparty jwtfirst- With Ghost running on localhost:2368
ruby ghost-auth.rb {admin api key}to run
Designed to authenticate with a local install, change the line 18 if your Ghost install is elsewhere