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.
- I get the log-in redirection (which shows up in a browser window that pops up), and I can log in.
- I can catch the post auth callback with my plugin’s protocol handler.
- 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?