feat(native): the address screen recognises a sign-in proxy in front of TREK and signs in to it inside the app, so its session works as in a browser

This commit is contained in:
Maurice
2026-11-08 20:44:26 +01:00
parent 1866dca818
commit 517efabbca
43 changed files with 786 additions and 21 deletions
+6 -2
View File
@@ -14,8 +14,12 @@ import type { NativeCapabilities } from './capabilities';
*/
export interface TrekShellPlugin {
getServer(): Promise<{ url: string | null }>;
/** Remembers the server and loads it. The current page is gone afterwards. */
setServer(options: { url: string }): Promise<void>;
/**
* Remembers the server and loads it. The current page is gone afterwards.
* `signInHosts` are the hosts of a proxy's sign-in page in front of it
* (authGate.ts): only they may load in the web view besides the server.
*/
setServer(options: { url: string; signInHosts?: string[] }): Promise<void>;
/** Forgets the server and returns to the address screen. */
resetServer(): Promise<void>;
/** Loads the remembered server again, after it could not be reached. */