refactor: OAuth flow is now handled via ASWebAuthenticationSession on macOS (#866)

This commit is contained in:
Huang Xin
2025-04-12 12:49:41 +08:00
committed by GitHub
parent 6ba15319a8
commit c807f0ccc8
15 changed files with 369 additions and 87 deletions
+3 -13
View File
@@ -190,19 +190,9 @@ const indexedDBFileSystem: FileSystem = {
export class WebAppService extends BaseAppService {
fs = indexedDBFileSystem;
appPlatform = 'web' as AppPlatform;
isAppDataSandbox = false;
isMobile = ['android', 'ios'].includes(getOSPlatform());
isAndroidApp = false;
isIOSApp = false;
hasTrafficLight = false;
hasWindow = false;
hasWindowBar = false;
hasContextMenu = false;
hasRoundedWindow = false;
hasSafeAreaInset = isPWA();
hasHaptics = false;
hasSysFontsList = false;
override isMobile = ['android', 'ios'].includes(getOSPlatform());
override appPlatform = 'web' as AppPlatform;
override hasSafeAreaInset = isPWA();
override resolvePath(fp: string, base: BaseDir): { baseDir: number; base: BaseDir; fp: string } {
return resolvePath(fp, base);