feat: Implement GitHub OAuth (#72)

* implement GitHub OAuth

* fmt and clippy

* add secrets for GitHub App in workflow

* fix env vars

* use device flow for login instead of callback for better security, add email and username to posthog analytics

* cleanup

* add user details to sentry context

* fixes after rebase

* feedback fixes

* do not allow to press esc to hide github popup

* use oauth app to get user token with full repo access

* use PAT token as a backup for creating PRs

* update github signin box text

* update sign in box styling

* fmt

---------

Co-authored-by: Gabriel Gordon-Hall <ggordonhall@gmail.com>
This commit is contained in:
Anastasiia Solop
2025-07-08 19:32:23 +02:00
committed by GitHub
parent 5368d827ae
commit dedee0f298
17 changed files with 1041 additions and 90 deletions

View File

@@ -47,6 +47,7 @@ sentry-tower = "0.41.0"
sentry-tracing = { version = "0.41.0", features = ["backtrace"] }
reqwest = { version = "0.11", features = ["json"] }
strip-ansi-escapes = "0.2.1"
urlencoding = "2.1.3"
[build-dependencies]
dotenv = "0.15"