Hi, I am calling the /oauth/token endpoint and successfully being returned an access token and I have verified it on jwt.io. I immediately then use that token in a GET request for user data but that request returns an invalid token error. Below is my implementation:
But I have just hit the /oauth/token endpoint successfully before and used the token it returned. For context I have been following the docs on this Get Management API Access Tokens for Production.
Am I missing scopes or can the /users/ endpoint only be hit from a server? Do I have to use this npm package to complete it?
I have got it working. The issue was scopes. I had to update my application permissions to send/receive the scopes I wanted to read user data. This took me a long time to figure out and really I came across it by chance and desperation. I think this needs to be more prominent in the documentation.