Skip to content

feat(ui): persist PAT between sessions for gitingest.com #291

Open
@cyclotruc

Description

@cyclotruc

Add Persistence for Personal Access Token (PAT) in Frontend

📝 Problem

Currently, when users enter their GitHub Personal Access Token (PAT) to access private repositories, the token is not persisted between browser sessions. Users have to re-enter their PAT every time they visit the site or refresh the page.

This creates friction for users who frequently work with private repositories and need to enter their token repeatedly.

🎯 Desired Outcome

Users should have the option to persist their PAT locally so they don't need to re-enter it on every visit, while maintaining appropriate security considerations.

🤔 Discussion Points

Some questions to consider when implementing this feature:

Storage Options:

  • Should we use localStorage, sessionStorage, or something else?
  • What are the security trade-offs of different approaches?

User Experience:

  • Should persistence be opt-in or opt-out?
  • How do we inform users about the security implications?
  • Should there be an easy way to clear saved tokens?

Security Considerations:

  • How do we balance convenience with security?
  • Should we implement any form of token obfuscation?
  • What warnings or disclaimers should we show users?

Implementation Scope:

  • Should this be a simple browser storage solution?
  • Are there other authentication patterns we should consider?

Feel free to comment with your thoughts on the best approach!

Metadata

Metadata

Assignees

Labels

discussionCommunity talk on a given topiconlydust-waveContribute to awesome OSS repos during OnlyDust's open source weeksuggestionNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions