fix: remove handle_auth_callback from invoke_handler
All checks were successful
PR Check / rust (push) Successful in 17m12s
PR Check / frontend (push) Successful in 2m12s
PR Check / rust (pull_request) Successful in 16m56s
PR Check / frontend (pull_request) Successful in 2m14s

The auth callback is handled exclusively via the deep-link handler in
lib.rs — exposing it as a JS-invocable command is unnecessary attack
surface. The frontend listens for auth-callback-success/error events
instead.

Plaintext token storage documented as known limitation (see #66).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
le king fu 2026-04-10 15:35:10 -04:00
parent 60b995394e
commit e314bbe1e3
2 changed files with 0 additions and 5 deletions

View file

@ -157,7 +157,6 @@ pub fn run() {
commands::list_activated_machines, commands::list_activated_machines,
commands::get_activation_status, commands::get_activation_status,
commands::start_oauth, commands::start_oauth,
commands::handle_auth_callback,
commands::refresh_auth_token, commands::refresh_auth_token,
commands::get_account_info, commands::get_account_info,
commands::check_subscription_status, commands::check_subscription_status,

View file

@ -11,10 +11,6 @@ export async function startOAuth(): Promise<string> {
return invoke<string>("start_oauth"); return invoke<string>("start_oauth");
} }
export async function handleAuthCallback(code: string): Promise<AccountInfo> {
return invoke<AccountInfo>("handle_auth_callback", { code });
}
export async function refreshAuthToken(): Promise<AccountInfo> { export async function refreshAuthToken(): Promise<AccountInfo> {
return invoke<AccountInfo>("refresh_auth_token"); return invoke<AccountInfo>("refresh_auth_token");
} }