如何在电子中进行 oauth 2.0 shell

How to do oauth 2.0 in electron shell

我正在尝试构建一个将使用 api 的应用程序。它具有 oauth 2.0 身份验证。我的 gui 框架是 electron shell (https://github.com/atom/electron) 是否有任何框架或节点包可以轻松做到这一点?我怀疑回调 URL 是在某个路由器后面进行 NAT 转换的。我该怎么做?

有一个很好的例子how to do oAuth authentication in an electron app using Github API. Also if you search in github.com you will find a lot of projects using electron and implementing oauth like Gitify does here