Integrating Oauth.io in to a React Chrome Extension

233 views Asked by At

I have a button that I'm using in a Chrome extension to connect to Twitter. When I click connect using the following code:

OAuth.popup('twitter').done(function(result) {
  console.log(result)
}, function(result) {
  debugger
});

The window pops up and closes right way. Debugging gives me this message:

Origin "https://mail.google.com/mail/u/0/" does not match any registered domain/url on oauth.io

Any idea what might be stopping it from working properly?

1

There are 1 answers

0
brandonhilkert On

Fixed by adding https://mail.google.com to the listed of accept URLs in oauth.io.