Use native Chrome for Reddit login handoff
This commit is contained in:
1 parent
2c533fa52a
commit
dbb1842ef4
13 files changed
+324
-60
No files matched your search
@@ -18,6 +18,7 @@ import type { OpenRouterClient } from '../ai/openrouter.js';
|
||||
import type { StrategySelector } from '../services/strategy-selector.js';
|
||||
import type { BrowserClient } from '../browser/client.js';
|
||||
import type { AccountAuthContext } from '../services/account-auth-context.js';
|
||||
import type { NativeLoginHandoff } from '../services/native-login-handoff.js';
|
||||
import { ActivityLog } from './activity-log.js';
|
||||
import { LogBroadcaster } from './log-broadcaster.js';
|
||||
import type { WebContext } from './context.js';
|
||||
@@ -180,6 +181,10 @@ export class WebServer {
|
||||
this.services.accountAuth = accountAuth;
|
||||
}
|
||||
|
||||
setNativeLoginHandoff(nativeLogin: NativeLoginHandoff): void {
|
||||
this.services.nativeLogin = nativeLogin;
|
||||
}
|
||||
|
||||
logActivity(type: ActivityItem['type'], message: string, recipient?: string, imageUrl?: string): void {
|
||||
this.activity.push(type, message, recipient, imageUrl);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user