ToDesktop Authentication

  • I am generating a desktop app for my web app using ToDesktop
  • I am using Supabase with Google for Authentication
  • I have a page “Connect” with the “Connect with Google” authentication button that redirects to a ‘welcome’ page
  • On the ‘welcome’ page I have a button with a “appname://” link that triggers the desktop app

I am wondering what can I embed in the “appname://” link and what logic do I need to pass the authentication to the desktop app, while keeping the built-in authentication features

Here’s the link to the ToDesktop documentation:

Thanks a lot!

Like in this step Recipes: Google OAuth Screen | ToDesktop Documentation you probably have to get the token and send it to your app.

Thanks @Alexis - because the app that I am building won’t be available on web, but just through the desktop wrappers, I’ve simply replaced the return url to appname:// in Supabase so when users connect with a provider the app is triggered automatically.

1 Like