As a user
I want to get a JSON Web Token from the API
So that I can make API calls to the API's endpoints
Scenario
Given: a user has registered with the API
And: they don't have a JWT yet
When: they send a POST request to /token
Then: the API sends an access and refresh token to the user
Scenario
Given: a user has not registered with the API
And: they don't have a JWT yet
When: they send a POST request to /token
Then: the API tells the user they need to register first
Feature completion checklist
[x] Build feature
[x] Make test calls to /api/token
[x] Build supporting documentation for JWT authentication
As a user I want to get a JSON Web Token from the API So that I can make API calls to the API's endpoints
Scenario
Given: a user has registered with the API And: they don't have a JWT yet When: they send a POST request to /token Then: the API sends an access and refresh token to the user
Scenario
Given: a user has not registered with the API And: they don't have a JWT yet When: they send a POST request to /token Then: the API tells the user they need to register first
Feature completion checklist