Back

Create a new session for a already logged in user without making the user log in again?

  • 1
  • Web
  • Android
  • Accounts
  • General
  • REST API
ApatheticPotato
17 Feb, 2024, 05:16

Personally I don't like entering my credentials every time I want to use an android app in a new device.

I'd like to redirect the user from my android app to my web app where they will log in for the first time. If they are already logged in, the web app would return the session id/user id/or whatever it needs so that the Android app can create a new session for it's own storage and usage for that user.

Is this possible currently? With or without the android sdk?

TL;DR
Developers want to create a new session for an already logged-in user without requiring them to log in again. They are considering redirecting the user to a web app upon first login. If the user is already logged in, the web app would send back relevant information for the Android app to create a new session for that user. They are seeking advice on whether this is achievable, with or without the Android SDK. Solution: To achieve this, developers can implement a system where the web app returns the necessary session information to the Android app after the user is redirected to the web app. This way, the Android app can create a new session
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