Skip to content

Enhancement: Add "Remember Me" checkbox to login form #242

@pericharlabindhumadhavi-data

Description

What's the problem?
The login form always stores tokens in localStorage, meaning
users stay signed in permanently across browser sessions.
There is no option for users who want a session-only login
(sign out automatically when browser closes).

Where is it happening
src/pages/public/Login.jsx — token storage in onSubmit
and handleGoogleLogin

What I'm suggesting
Add a "Remember Me" checkbox to the login form:

  • Checked → store tokens in localStorage (current behavior)
  • Unchecked → store tokens in sessionStorage (session only)

Why it matters
Users on shared or public devices should have the option to
not stay permanently signed in. This is a standard security
and UX expectation on any login form.

I would like to work on this issue under GSSoC.
Please assign this issue to me.
Thank you.

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