Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do i config the redirect_uri when the app packet to Electron #76

Open
zredb opened this issue Dec 11, 2019 · 1 comment
Open

How do i config the redirect_uri when the app packet to Electron #76

zredb opened this issue Dec 11, 2019 · 1 comment

Comments

@zredb
Copy link

zredb commented Dec 11, 2019

when I use the vue, the redirect_uri is a http address like this: http://localhost:8080/signin, but when in Electron app, this address not valid because there isn't a http server exist, so which is the substitude for that address?

@Nicholaiii
Copy link

Nicholaiii commented Feb 18, 2020

I found the module isn't geared towards rendering a redirect page. You can use anything, electron-oauth-helper will read the data from the URL just fine, and once it's done with provider.perform , you can window.close()
If you absolutely need an http server, you can spin up a quick Koa server in your main app like so:

const Koa = require('koa')
const app = new Koa()
app.listen(1337)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants