I am trying to fetch athlete stats from a node.js script with this api call:
https://www.strava.com/api/v3/athletes/{athlete_id}/stats?access_token=${res.access_token} via a github action.
The access_token is retrieved from an earlier oauth call
https://www.strava.com/oauth/token.
When running the github action workflow and calling the stats API, I receive the following error: Error: {"message":"Authorization Error","errors":[{"resource":"Athlete","field":"access_token","code":"invalid"}]}
What's weird is the node.js script works fine when testing locally. Does the Authorization Callback Domain need to be updated to a github domain? I currently have the field set to localhost.
Thank You.