Skip to content

[Feature] Implement Autologin on app startup  #58

Description

@GnejuszPompejusz

Is your feature request related to a problem? Please describe

Typing my username and password every time I open the Android app is frustrating, especially since I use it daily on my device. It’s a repetitive step that slows down access.

Describe the solution you'd like

Add an autologin feature that triggers when the app starts. On launch, it should:

  1. Check SecureStoragePlugin for saved accounts.
  2. If an account has autoLogin: true, attempt login using stored credentials (e.g., authenticate(login, atob(password))).
  3. On success, redirect to the main screen (router.push("/")).
  4. On failure or no autologin account, fall back to the manual login screen.
    Store credentials securely using Android’s secure storage (via SecureStoragePlugin), and include a toggle in account settings to enable/disable autoLogin per account.

Describe alternatives you've considered

  • Pre-filled fields: Could auto-fill login/password, but still requires a manual "Login" tap, which isn’t as seamless as autologin.
  • Stay logged in: Thought about a persistent session (e.g., keeping a token), but this risks authorization issues (e.g., token expiration or server-side logout), forcing re-login anyway. Autologin avoids this by re-authenticating on startup, ensuring a fresh session without constant user input.

Additional context

This would streamline daily use for Android users while keeping security intact. Consider tying it to Android’s biometric auth (e.g., fingerprint) for extra protection if autologin is enabled. The autoLoginAttempted flag in sessionStorage could prevent repeated attempts in one session, resetting only on app close.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions