We want to let users log in with Discord and thinking about how to transfer to the main window the info that the auth window gets from discord. If you have thoughts, I’ll be happy to hear.
I’m not familiar with the Discord API, but basically, one possible flow is something like this:
- Open Discord login window from your app/extension. This window will load a remote server-side script.
- Do the login.
- Redirect to the extension page.
- Set the localStorage.
- Close the window.
This topic is now covered in the API docs here: