Anmeldung in-App: Browser-Flow (start_browser_login öffnet Amazon-Login im Browser, URL-Paste in der App schließt ab); Terminal-Weg bleibt als Fallback

This commit is contained in:
2026-11-09 17:14:49 +01:00
parent f5b38cf3a7
commit 0ee79ff14c
6 changed files with 262 additions and 5 deletions

View File

@ -98,6 +98,11 @@ export interface Prefs {
export const getPrefs = () => invoke<Prefs>('get_prefs')
export const setPrefs = (prefs: Prefs) => invoke<void>('set_prefs', { prefs })
export const appVersion = () => invoke<string>('app_version')
export const startBrowserLogin = () => invoke<void>('start_browser_login')
export const submitLoginUrl = (paste: string) => invoke<void>('submit_login_url', { paste })
export const cancelBrowserLogin = () => invoke<void>('cancel_browser_login')
export const onLoginUrl = (cb: (url: string) => void) =>
listen<{ url: string }>('login-url', (ev) => cb(ev.payload.url))
export interface BookExtra {
description: string