First thing I see, it looks like you are trying to use the access token as a refresh token, which will not work. You will need to pass in a refresh token here instead
let refresh_token = localStorage.getItem(‘access_token’);
That said, I would have expected that to return a different error along the lines of
Only refresh tokens can access this endpoint
Have you modified the JWT_HEADER_NAME or JWT_HEADER_TYPE in your app.config at all?
I’m accessing the API with a different PHP script, so there is no localStorage.
According to the documentation I should be able to call the /access_token with client ID and client SECRET (as set in the admin pannel) and get back an access token which I then send over in the Authorization header.