I discovered that no access token is persisted to the database. Bummer.
Most likely, in server.js, app.models.Client.generateVerificationToken does not persist anything to the database, just generates a token.
Instead, client.createAccessToken must be used.
This issue prevents from making any authenticated requests.
Need to write a failing test for that, and to fix it!
Using the following middleware
I discovered that no access token is persisted to the database. Bummer. Most likely, in server.js,
app.models.Client.generateVerificationToken
does not persist anything to the database, just generates a token.Instead,
client.createAccessToken
must be used. This issue prevents from making any authenticated requests. Need to write a failing test for that, and to fix it!