feat(core): support apple sign in (#12424)

This commit is contained in:
liuyi
2025-05-23 15:27:27 +08:00
committed by GitHub
parent a96cd3eb0a
commit 41781902f6
22 changed files with 629 additions and 260 deletions
+1 -1
View File
@@ -70,7 +70,7 @@ const getUa = (navigator: Navigator) => {
const tiktok = mobile && /aweme/i.test(ua);
const weibo = mobile && /Weibo/i.test(ua);
const safari =
ios && !chrome && !wx && !weibo && !tiktok && /Safari|Macintosh/i.test(ua);
!chrome && !wx && !weibo && !tiktok && /Safari|Macintosh/i.test(ua);
const firefox = /Firefox/.test(ua);
const win = /windows|win32|win64|wow32|wow64/.test(uas);
const linux = /linux/.test(uas);
+8
View File
@@ -671,6 +671,7 @@ export type ErrorDataUnion =
| InvalidLicenseToActivateDataType
| InvalidLicenseUpdateParamsDataType
| InvalidOauthCallbackCodeDataType
| InvalidOauthResponseDataType
| InvalidPasswordLengthDataType
| InvalidRuntimeConfigTypeDataType
| InvalidSearchProviderRequestDataType
@@ -773,6 +774,7 @@ export enum ErrorNames {
INVALID_LICENSE_UPDATE_PARAMS = 'INVALID_LICENSE_UPDATE_PARAMS',
INVALID_OAUTH_CALLBACK_CODE = 'INVALID_OAUTH_CALLBACK_CODE',
INVALID_OAUTH_CALLBACK_STATE = 'INVALID_OAUTH_CALLBACK_STATE',
INVALID_OAUTH_RESPONSE = 'INVALID_OAUTH_RESPONSE',
INVALID_PASSWORD_LENGTH = 'INVALID_PASSWORD_LENGTH',
INVALID_RUNTIME_CONFIG_TYPE = 'INVALID_RUNTIME_CONFIG_TYPE',
INVALID_SEARCH_PROVIDER_REQUEST = 'INVALID_SEARCH_PROVIDER_REQUEST',
@@ -935,6 +937,11 @@ export interface InvalidOauthCallbackCodeDataType {
status: Scalars['Int']['output'];
}
export interface InvalidOauthResponseDataType {
__typename?: 'InvalidOauthResponseDataType';
reason: Scalars['String']['output'];
}
export interface InvalidPasswordLengthDataType {
__typename?: 'InvalidPasswordLengthDataType';
max: Scalars['Int']['output'];
@@ -1775,6 +1782,7 @@ export interface NotificationWorkspaceType {
}
export enum OAuthProviderType {
Apple = 'Apple',
GitHub = 'GitHub',
Google = 'Google',
OIDC = 'OIDC',