refactor(server): improve oauth login flow (#10648)

close CLOUD-145
This commit is contained in:
fengmk2
2025-03-12 06:53:29 +00:00
parent d823792f85
commit 867ae7933f
16 changed files with 211 additions and 31 deletions
+5 -1
View File
@@ -12,6 +12,10 @@ declare interface BUILD_CONFIG_TYPE {
isElectron: boolean;
isWeb: boolean;
/**
* 'desktop' | 'ios' | 'android'
*/
isNative: boolean;
isMobileWeb: boolean;
isIOS: boolean;
isAndroid: boolean;
@@ -30,4 +34,4 @@ declare interface BUILD_CONFIG_TYPE {
linkPreviewUrl: string;
}
declare var BUILD_CONFIG: BUILD_CONFIG_TYPE;
declare var BUILD_CONFIG: BUILD_CONFIG_TYPE;
+4
View File
@@ -33,6 +33,10 @@ export function getBuildConfig(
isMobileWeb: distribution === 'mobile',
isIOS: distribution === 'ios',
isAndroid: distribution === 'android',
isNative:
distribution === 'desktop' ||
distribution === 'ios' ||
distribution === 'android',
isAdmin: distribution === 'admin',
appBuildType: 'stable' as const,