mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-09-07 01:09:54 +08:00
feat(core): support apple sign in (#12424)
This commit is contained in:
Vendored
+1
-1
@@ -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);
|
||||
|
||||
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user