SurfSense icon indicating copy to clipboard operation
SurfSense copied to clipboard

Add Google OAuth and username/password login to browser extension

Open kubbot opened this issue 9 months ago • 3 comments

Is your feature request related to a problem? Please describe.
Currently, the SurfSense browser extension requires users to manually obtain and paste in an API token before they can log in. This token-based approach adds friction and can be confusing, especially for first-time users.

Describe the solution you'd like

  1. Offer “Sign in with Google” (OAuth) directly in the extension’s login UI.
  2. Provide a classic username + password flow (backed by our existing backend) as an alternative.

These additional methods will:

  • Eliminate the extra step of generating or fetching a token
  • Make onboarding much smoother for non-technical users
  • Leverage standard, familiar auth flows most users already have

Describe alternatives you've considered

  • Keeping token-only login (current)
  • Implementing other OAuth providers (e.g. GitHub) in the future

Additional context
If we already support OAuth on the backend (e.g. via FastAPI Users), exposing it in the extension should be straightforward. Happy to help with any design or implementation details!

kubbot avatar May 13 '25 12:05 kubbot

Describe the solution you'd like

  1. Offer “Sign in with Google” (OAuth) directly in the extension’s login UI.
  • This issue here is how to send the generated access token back to Extension? Any ideas?
  1. Provide a classic username + password flow (backed by our existing backend) as an alternative.
  • I am looking into this. This should help 'first time contributors' aswell.

MODSetter avatar May 13 '25 18:05 MODSetter

Hey @kubbot If you know how to do this then it would be best if you can raise the PR. Everyone will love that 👍

Otherwise, I will pick this up when I finally do the extension code cleanup. Its OLD ATM xD

MODSetter avatar May 14 '25 04:05 MODSetter

Hi @MODSetter, I would like to work on this issue.

AnishSarkar22 avatar Aug 28 '25 05:08 AnishSarkar22

Hi @MODSetter, I would like to work on this issue.

Thanks for your interest assigning it to you now 😊🙏

MODSetter avatar Aug 28 '25 05:08 MODSetter