Skip to content

Commit aae58c7

Browse files
committed
feat: add desktop app authentication via deep links
- Add app parameter support to /auth endpoint - Store app type in cookie during OAuth flow - Redirect to jprq://auth/callback?token=... for desktop apps - Fallback to web display for browser-based auth
1 parent 4cb5000 commit aae58c7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

website/main.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,11 +99,11 @@ func oauthCallback(w http.ResponseWriter, r *http.Request) {
9999
var appURL string
100100
switch appCookie.Value {
101101
case "mac":
102-
appURL = fmt.Sprintf("jprq://auth?token=%s", token)
102+
appURL = fmt.Sprintf("jprq://auth/callback?token=%s", token)
103103
case "windows":
104-
appURL = fmt.Sprintf("jprq://auth?token=%s", token)
104+
appURL = fmt.Sprintf("jprq://auth/callback?token=%s", token)
105105
case "linux":
106-
appURL = fmt.Sprintf("jprq://auth?token=%s", token)
106+
appURL = fmt.Sprintf("jprq://auth/callback?token=%s", token)
107107
default:
108108
// Unknown app type, fall back to web display
109109
w.Header().Set("Content-Type", "text/html")

0 commit comments

Comments
 (0)