Back

Passing auth to desktop app

  • 0
  • Auth
  • Web
  • Cloud
max
29 Mar, 2024, 12:28

Hi! I got a website as well as a desktop app. The user can log in exclusively using oAuth. This poses the problem that I can't just show a login form in the local app. Instead my plan was to have the app open up the website, have the website handle the auth and pass back the token to the app. However since AppWrite handles sessions using cookies that I have no access to, it's pretty much impossible to do it that way. Is there any good way to solve this?

TL;DR
Developers want to pass auth from website to desktop app but face issues due to expiring tokens. Suggested solution is to use JWT for handling authentication. By implementing JWT, developers can securely manage user sessions between website and desktop app without relying on cookies.
Evdog
29 Mar, 2024, 22:37

Might be worth tryin w/ JWT - https://appwrite.io/docs/products/auth/jwt

max
30 Mar, 2024, 10:34

I would, but they expire after 15 minutes, so it wouldn't survive for long

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more