How can I handle non https:// protocols in OSDK auth callback?

I’m building a plugin for an Electron based app (Obsidian) with OSDK. It uses a special protocol (obsidian://…) rather than being hosted at https://localhost:8080. I can’t change this but it messes with the signIn() function of my OSDK.

  1. I get the log-in redirection (which shows up in a browser window that pops up), and I can log in.
  2. I can catch the post auth callback with my plugin’s protocol handler.
  3. However, the log-in window remains open and auth.getTokenOrUndefined() returns undefined.

Is there any way I can update whatever process is waiting for my authentication that I’ve actually received the code that was needed?

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.