【发布时间】:2021-03-13 01:32:25
【问题描述】:
我正在使用 discord oAuth2 是一个 vue/nuxt/electron 应用程序,我需要创建一个自定义协议来处理 oAuth2 代码。我想最后有这样的东西:myapp://auth/callback?code=codehere
我尝试了与此相关的各种答案,但没有一个适合我使用。
例如:
app.whenReady().then(() => {
protocol.registerSchemesAsPrivileged([{
scheme: 'myapp',
privileges: {
standard: true,
secure: true
}
},
])
})
我知道 electron-builder 有一个协议选项,但我也不确定它是否适合我的需求。
【问题讨论】:
标签: javascript node.js oauth-2.0 electron nuxt.js