简体   繁体   中英

Integrating Oauth.io in to a React Chrome Extension

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?

通过将https://mail.google.com添加到oauth.io中的接受URL列表进行修复。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM