Given a front end application that makes use of Twitter login, and using this as a guide:
I discovered getTokenSilently, and tried to make calls to Twitter’s APIs with it. Right now I’m getting CORS errors, which is to be expected, but I was curious. I copied the result from getTokenSilently and tried to make the call locally, and I get 401 unauthored errors. Any ideas why?
The token returned from getTokenSilently is an access token issued by Auth0, not an access token issued by Twitter.
This token is not intended for use with API endpoints owned by Twitter. Instead, you are looking for IDP access tokens. Take a look at this doc for more info:
Ok, I did try this route, but had the same issues described here, Twitter Api returning Invalid or expired token. The token I got back from calling the Management API didn’t seem to ever work with Twitter.