Best practices working with OAuth in an Overwolf app?

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:

  1. Open Discord login window from your app/extension. This window will load a remote server-side script.
  2. Do the login.
  3. Redirect to the extension page.
  4. Set the localStorage.
  5. Close the window.

This topic is now covered in the API docs here:
https://overwolf.github.io/docs/topics/login-with-discord

1 Like