I would say one of the issues is the way you are getting the redirect_uri
Basically you have to:
const REDIRECT_URI = chrome.identity.getRedirectURL();
Also for me worked to get that REDIRECT_URI generated and paste it at your yahoo app Redirect URI(s) in the yahoo developer. They have to be the same.