Architecture
Requests
Making requests to the API.
Overview
TODO
Requests
Use an Authorization
header with your app key
and a X-JWT
header with the current authenticated claims.
Example Axios code.
axios.get('https://api.backstack.com/some-endpoint', {
headers: {
'Authorization' : 'your-app-key',
'X-JWT': cookies.get('jwt')
}
})
.then((response) => {
const {success, message, data} = response
// Handle the response...
});