Trying to update a chrome extension but get a "OAuth token is missing"

The bearer shouldn’t be hardcoded as it will expire.

Either the token is invalid, expired, or it’s not passing to your ajax function as you expect.

So debug it