@oxy.so/services 11.2.0-oxy-one.3 → 11.2.0-oxy-one.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/commonjs/assets/assets/icons/OxyServices.tsx +42 -40
- package/lib/commonjs/assets/assets/illustrations/HighFive.tsx +58 -31
- package/lib/commonjs/assets/icons/OxyServices.js.map +1 -1
- package/lib/commonjs/assets/illustrations/HighFive.js.map +1 -1
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/notifications/deviceNotifications.js +8 -4
- package/lib/commonjs/notifications/deviceNotifications.js.map +1 -1
- package/lib/commonjs/ui/analytics/productAnalytics.js.map +1 -1
- package/lib/commonjs/ui/boot/runProviderColdBoot.js.map +1 -1
- package/lib/commonjs/ui/components/BenefitList.js.map +1 -1
- package/lib/commonjs/ui/components/BloomLocaleBridge.js.map +1 -1
- package/lib/commonjs/ui/components/FollowButton.js.map +1 -1
- package/lib/commonjs/ui/components/FollowTargetButton.js +1 -1
- package/lib/commonjs/ui/components/FollowTargetButton.js.map +1 -1
- package/lib/commonjs/ui/components/LanguageBridge.js.map +1 -1
- package/lib/commonjs/ui/components/OxyAuthChooser.js.map +1 -1
- package/lib/commonjs/ui/components/OxyAuthPrompt.js.map +1 -1
- package/lib/commonjs/ui/components/OxyConsentScreen.js.map +1 -1
- package/lib/commonjs/ui/components/OxyProvider.js.map +1 -1
- package/lib/commonjs/ui/components/OxySignInButton.js +1 -1
- package/lib/commonjs/ui/components/OxySignInButton.js.map +1 -1
- package/lib/commonjs/ui/components/OxySignInRequestSurface.js.map +1 -1
- package/lib/commonjs/ui/components/PeableButton.js.map +1 -1
- package/lib/commonjs/ui/components/ProfileButton.js.map +1 -1
- package/lib/commonjs/ui/components/ProfileSummaryCard.js +1 -1
- package/lib/commonjs/ui/components/ProfileSummaryCard.js.map +1 -1
- package/lib/commonjs/ui/components/RequireOxyAuth.js.map +1 -1
- package/lib/commonjs/ui/components/SettingsIcon.js.map +1 -1
- package/lib/commonjs/ui/components/SurfaceHeaderAction.js.map +1 -1
- package/lib/commonjs/ui/components/SurfaceScreen.js.map +1 -1
- package/lib/commonjs/ui/components/authChooser/AccountsMenuView.js.map +1 -1
- package/lib/commonjs/ui/components/authChooser/TroubleDisclosure.js.map +1 -1
- package/lib/commonjs/ui/components/authChooser/requestSurfaces.js.map +1 -1
- package/lib/commonjs/ui/components/authChooser/types.js.map +1 -1
- package/lib/commonjs/ui/components/feedback/constants.js.map +1 -1
- package/lib/commonjs/ui/components/feedback/useFeedbackForm.js.map +1 -1
- package/lib/commonjs/ui/components/fileManagement/FileDetailsModal.js.map +1 -1
- package/lib/commonjs/ui/components/fileManagement/FileViewer.js +1 -1
- package/lib/commonjs/ui/components/fileManagement/FileViewer.js.map +1 -1
- package/lib/commonjs/ui/components/fileManagement/UploadPreview.js.map +1 -1
- package/lib/commonjs/ui/components/followButtonAccessibility.js.map +1 -1
- package/lib/commonjs/ui/components/followRules.js.map +1 -1
- package/lib/commonjs/ui/components/icon/FAIRWalletIcon.js.map +1 -1
- package/lib/commonjs/ui/components/logo/LogoText.js.map +1 -1
- package/lib/commonjs/ui/components/modals/DeleteAccountModal.js.map +1 -1
- package/lib/commonjs/ui/components/oauthNavigation.js.map +1 -1
- package/lib/commonjs/ui/components/payment/PaymentDetailsStep.js.map +1 -1
- package/lib/commonjs/ui/components/payment/PaymentMethodStep.js.map +1 -1
- package/lib/commonjs/ui/components/payment/PaymentReviewStep.js.map +1 -1
- package/lib/commonjs/ui/components/payment/PaymentSuccessStep.js.map +1 -1
- package/lib/commonjs/ui/components/payment/PaymentSummaryStep.js +1 -1
- package/lib/commonjs/ui/components/payment/PaymentSummaryStep.js.map +1 -1
- package/lib/commonjs/ui/components/payment/constants.js.map +1 -1
- package/lib/commonjs/ui/components/payment/paymentStyles.js.map +1 -1
- package/lib/commonjs/ui/components/photogrid/JustifiedPhotoGrid.js.map +1 -1
- package/lib/commonjs/ui/components/signIn/InlineCommonsQr.js.map +1 -1
- package/lib/commonjs/ui/components/signIn/OxyAccountPicker.js.map +1 -1
- package/lib/commonjs/ui/components/signIn/OxyAuthScreen.js.map +1 -1
- package/lib/commonjs/ui/components/signIn/OxyAuthenticatorPanel.js.map +1 -1
- package/lib/commonjs/ui/components/signIn/OxyDeleteAccountPanel.js.map +1 -1
- package/lib/commonjs/ui/components/signIn/OxyLinkCommonsPanel.js.map +1 -1
- package/lib/commonjs/ui/components/signIn/OxyPasswordPanel.js.map +1 -1
- package/lib/commonjs/ui/components/signIn/OxySignInPanel.js.map +1 -1
- package/lib/commonjs/ui/components/signIn/OxySignUpPanel.js.map +1 -1
- package/lib/commonjs/ui/components/signIn/ReauthStep.js.map +1 -1
- package/lib/commonjs/ui/components/signIn/accountFlowParts.js.map +1 -1
- package/lib/commonjs/ui/components/signIn/artwork.js.map +1 -1
- package/lib/commonjs/ui/components/signIn/signInFlowStore.js.map +1 -1
- package/lib/commonjs/ui/components/styles/overlay.js.map +1 -1
- package/lib/commonjs/ui/components/styles/shadow.js.map +1 -1
- package/lib/commonjs/ui/components/surfaces/ActionSheetSurface.js.map +1 -1
- package/lib/commonjs/ui/components/utils/hasTouchHandler.js.map +1 -1
- package/lib/commonjs/ui/components/utils/roundLayoutSize.js.map +1 -1
- package/lib/commonjs/ui/components/utils/splitStyles.js.map +1 -1
- package/lib/commonjs/ui/constants/spacing.js.map +1 -1
- package/lib/commonjs/ui/context/OxyContext.js.map +1 -1
- package/lib/commonjs/ui/context/commitSessionFlow.js.map +1 -1
- package/lib/commonjs/ui/context/hooks/useAuthOperations.js.map +1 -1
- package/lib/commonjs/ui/context/isolatedOAuthSession.js.map +1 -1
- package/lib/commonjs/ui/context/useOxyAccountGraph.js.map +1 -1
- package/lib/commonjs/ui/hooks/accountDialogSnapshot.js.map +1 -1
- package/lib/commonjs/ui/hooks/accountQueryPersistence.js.map +1 -1
- package/lib/commonjs/ui/hooks/mutations/mutationFactory.js.map +1 -1
- package/lib/commonjs/ui/hooks/mutations/useAccountMutations.js.map +1 -1
- package/lib/commonjs/ui/hooks/persistedQueryCache.js.map +1 -1
- package/lib/commonjs/ui/hooks/queries/queryKeys.js.map +1 -1
- package/lib/commonjs/ui/hooks/queries/useAccountQueries.js.map +1 -1
- package/lib/commonjs/ui/hooks/queries/useFileQueries.js.map +1 -1
- package/lib/commonjs/ui/hooks/queries/usePaymentQueries.js.map +1 -1
- package/lib/commonjs/ui/hooks/queries/usePersonalPlans.js.map +1 -1
- package/lib/commonjs/ui/hooks/queries/useSecurityQueries.js.map +1 -1
- package/lib/commonjs/ui/hooks/queries/useServicesQueries.js.map +1 -1
- package/lib/commonjs/ui/hooks/queries/userCache.js +38 -38
- package/lib/commonjs/ui/hooks/queries/userCache.js.map +1 -1
- package/lib/commonjs/ui/hooks/queryClient.js.map +1 -1
- package/lib/commonjs/ui/hooks/useAssets.js.map +1 -1
- package/lib/commonjs/ui/hooks/useAsyncAction.js.map +1 -1
- package/lib/commonjs/ui/hooks/useAuth.js.map +1 -1
- package/lib/commonjs/ui/hooks/useAvatarPicker.js.map +1 -1
- package/lib/commonjs/ui/hooks/useDeviceSwitcher.js.map +1 -1
- package/lib/commonjs/ui/hooks/useFileFiltering.js.map +1 -1
- package/lib/commonjs/ui/hooks/useFollow.js.map +1 -1
- package/lib/commonjs/ui/hooks/useI18n.js.map +1 -1
- package/lib/commonjs/ui/hooks/useProfileEditing.js.map +1 -1
- package/lib/commonjs/ui/hooks/useReduceMotion.js.map +1 -1
- package/lib/commonjs/ui/hooks/useResolvedFileUrls.js.map +1 -1
- package/lib/commonjs/ui/hooks/useSessionManagement.js.map +1 -1
- package/lib/commonjs/ui/hooks/useSettingToggle.js.map +1 -1
- package/lib/commonjs/ui/hooks/useStorage.js.map +1 -1
- package/lib/commonjs/ui/hooks/useSurfaceFrameWidth.js.map +1 -1
- package/lib/commonjs/ui/icons/Ionicons.js.map +1 -1
- package/lib/commonjs/ui/icons/MaterialCommunityIcons.js.map +1 -1
- package/lib/commonjs/ui/icons/decorativeIconSet.js.map +1 -1
- package/lib/commonjs/ui/isFrontend.js.map +1 -1
- package/lib/commonjs/ui/navigation/bottomSheetManager.js.map +1 -1
- package/lib/commonjs/ui/navigation/routes.js.map +1 -1
- package/lib/commonjs/ui/navigation/surfaces.js.map +1 -1
- package/lib/commonjs/ui/oauth/applicationSessionLane.js.map +1 -1
- package/lib/commonjs/ui/oauth/browserAuthTransport.js.map +1 -1
- package/lib/commonjs/ui/oauth/browserBridge.js.map +1 -1
- package/lib/commonjs/ui/oauth/completeOAuthCode.js.map +1 -1
- package/lib/commonjs/ui/oauth/nativeAuthTransport.js.map +1 -1
- package/lib/commonjs/ui/oauth/oauthHandshake.js.map +1 -1
- package/lib/commonjs/ui/oauth/oauthPopup.js.map +1 -1
- package/lib/commonjs/ui/oauth/oauthPopupMessages.js.map +1 -1
- package/lib/commonjs/ui/runtime/createOxyRuntime.js.map +1 -1
- package/lib/commonjs/ui/screens/AccountMembersScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/AccountSecurityPanelScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/AccountSettingsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/AccountVerificationScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/AppInfoScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/AvatarCropScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/ChangeAvatarScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/ConnectedAppsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/CreateAccountScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/DomainsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/EditProfileFieldScreen.js +1 -1
- package/lib/commonjs/ui/screens/EditProfileFieldScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/EditProfileScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/FileManagementScreen.js +2 -5
- package/lib/commonjs/ui/screens/FileManagementScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/HelpSupportScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/HistoryViewScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/LanguageSelectorScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/LearnMoreUsernamesScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/LegalDocumentsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/ManageAccountScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/NotificationsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/PaymentGatewayScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/PreferencesScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/PrivacySettingsScreen.js +3 -3
- package/lib/commonjs/ui/screens/PrivacySettingsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/ProfileScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/SearchSettingsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/UserLinksScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/UserListScreen.js +1 -1
- package/lib/commonjs/ui/screens/UserListScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/WelcomeNewUserScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/fileManagement/FileLibraryError.js.map +1 -1
- package/lib/commonjs/ui/screens/fileManagement/FileListSection.js.map +1 -1
- package/lib/commonjs/ui/screens/fileManagement/PhotoPickerSection.js +7 -7
- package/lib/commonjs/ui/screens/fileManagement/PhotoPickerSection.js.map +1 -1
- package/lib/commonjs/ui/screens/fileManagement/UploadBar.js.map +1 -1
- package/lib/commonjs/ui/screens/fileManagement/hooks/useFileUploadState.js.map +1 -1
- package/lib/commonjs/ui/screens/fileManagement/photoGridLayout.js.map +1 -1
- package/lib/commonjs/ui/screens/fileManagement/shared.js.map +1 -1
- package/lib/commonjs/ui/screens/linkFormat.js.map +1 -1
- package/lib/commonjs/ui/screens/trust/TrustAboutScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/trust/TrustCenterScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/trust/TrustFAQScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/trust/TrustLeaderboardScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/trust/TrustRewardsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/trust/TrustRulesScreen.js.map +1 -1
- package/lib/commonjs/ui/server.js.map +1 -1
- package/lib/commonjs/ui/session/authStore.js.map +1 -1
- package/lib/commonjs/ui/session/backgroundSession.js.map +1 -1
- package/lib/commonjs/ui/session/createSessionClient.js.map +1 -1
- package/lib/commonjs/ui/session/deviceCredentialTracker.js.map +1 -1
- package/lib/commonjs/ui/session/identityBinding.js.map +1 -1
- package/lib/commonjs/ui/session/sharedDeviceCredentialStore.js.map +1 -1
- package/lib/commonjs/ui/session/tokenLossRecovery.js.map +1 -1
- package/lib/commonjs/ui/session/tokenTransport.js.map +1 -1
- package/lib/commonjs/ui/stores/assetStore.js.map +1 -1
- package/lib/commonjs/ui/stores/followStore.js.map +1 -1
- package/lib/commonjs/ui/utils/accountDeletionHandoff.js.map +1 -1
- package/lib/commonjs/ui/utils/avatarUtils.js.map +1 -1
- package/lib/commonjs/ui/utils/clipboard.native.js +23 -6
- package/lib/commonjs/ui/utils/clipboard.native.js.map +1 -1
- package/lib/commonjs/ui/utils/commonsStoreLinks.js.map +1 -1
- package/lib/commonjs/ui/utils/errorHandlers.js.map +1 -1
- package/lib/commonjs/ui/utils/fileManagement.js +24 -24
- package/lib/commonjs/ui/utils/fileManagement.js.map +1 -1
- package/lib/commonjs/ui/utils/iconNames.js.map +1 -1
- package/lib/commonjs/ui/utils/sessionHelpers.js.map +1 -1
- package/lib/commonjs/ui/utils/userUtils.js.map +1 -1
- package/lib/commonjs/utils/hookUtils.js +2 -4
- package/lib/commonjs/utils/hookUtils.js.map +1 -1
- package/lib/module/assets/assets/icons/OxyServices.tsx +42 -40
- package/lib/module/assets/assets/illustrations/HighFive.tsx +58 -31
- package/lib/module/assets/icons/OxyServices.js.map +1 -1
- package/lib/module/assets/illustrations/HighFive.js.map +1 -1
- package/lib/module/index.js.map +1 -1
- package/lib/module/notifications/deviceNotifications.js +8 -4
- package/lib/module/notifications/deviceNotifications.js.map +1 -1
- package/lib/module/ui/analytics/productAnalytics.js.map +1 -1
- package/lib/module/ui/boot/runProviderColdBoot.js.map +1 -1
- package/lib/module/ui/client.js.map +1 -1
- package/lib/module/ui/components/BenefitList.js.map +1 -1
- package/lib/module/ui/components/BloomLocaleBridge.js.map +1 -1
- package/lib/module/ui/components/FollowButton.js.map +1 -1
- package/lib/module/ui/components/FollowTargetButton.js +1 -1
- package/lib/module/ui/components/FollowTargetButton.js.map +1 -1
- package/lib/module/ui/components/LanguageBridge.js.map +1 -1
- package/lib/module/ui/components/OxyAuthChooser.js.map +1 -1
- package/lib/module/ui/components/OxyAuthPrompt.js.map +1 -1
- package/lib/module/ui/components/OxyConsentScreen.js.map +1 -1
- package/lib/module/ui/components/OxyProvider.js.map +1 -1
- package/lib/module/ui/components/OxySignInButton.js +1 -1
- package/lib/module/ui/components/OxySignInButton.js.map +1 -1
- package/lib/module/ui/components/OxySignInRequestSurface.js.map +1 -1
- package/lib/module/ui/components/PeableButton.js.map +1 -1
- package/lib/module/ui/components/ProfileButton.js.map +1 -1
- package/lib/module/ui/components/ProfileSummaryCard.js +1 -1
- package/lib/module/ui/components/ProfileSummaryCard.js.map +1 -1
- package/lib/module/ui/components/RequireOxyAuth.js.map +1 -1
- package/lib/module/ui/components/SettingsIcon.js.map +1 -1
- package/lib/module/ui/components/SurfaceHeaderAction.js.map +1 -1
- package/lib/module/ui/components/SurfaceScreen.js.map +1 -1
- package/lib/module/ui/components/authChooser/AccountsMenuView.js.map +1 -1
- package/lib/module/ui/components/authChooser/TroubleDisclosure.js.map +1 -1
- package/lib/module/ui/components/authChooser/requestSurfaces.js.map +1 -1
- package/lib/module/ui/components/authChooser/types.js.map +1 -1
- package/lib/module/ui/components/feedback/constants.js.map +1 -1
- package/lib/module/ui/components/feedback/useFeedbackForm.js.map +1 -1
- package/lib/module/ui/components/fileManagement/FileDetailsModal.js.map +1 -1
- package/lib/module/ui/components/fileManagement/FileViewer.js +1 -1
- package/lib/module/ui/components/fileManagement/FileViewer.js.map +1 -1
- package/lib/module/ui/components/fileManagement/UploadPreview.js.map +1 -1
- package/lib/module/ui/components/followButtonAccessibility.js.map +1 -1
- package/lib/module/ui/components/followRules.js.map +1 -1
- package/lib/module/ui/components/icon/FAIRWalletIcon.js.map +1 -1
- package/lib/module/ui/components/logo/LogoText.js.map +1 -1
- package/lib/module/ui/components/modals/DeleteAccountModal.js.map +1 -1
- package/lib/module/ui/components/oauthNavigation.js.map +1 -1
- package/lib/module/ui/components/payment/PaymentDetailsStep.js.map +1 -1
- package/lib/module/ui/components/payment/PaymentMethodStep.js.map +1 -1
- package/lib/module/ui/components/payment/PaymentReviewStep.js.map +1 -1
- package/lib/module/ui/components/payment/PaymentSuccessStep.js.map +1 -1
- package/lib/module/ui/components/payment/PaymentSummaryStep.js +1 -1
- package/lib/module/ui/components/payment/PaymentSummaryStep.js.map +1 -1
- package/lib/module/ui/components/payment/constants.js.map +1 -1
- package/lib/module/ui/components/payment/paymentStyles.js.map +1 -1
- package/lib/module/ui/components/photogrid/JustifiedPhotoGrid.js.map +1 -1
- package/lib/module/ui/components/signIn/InlineCommonsQr.js.map +1 -1
- package/lib/module/ui/components/signIn/OxyAccountPicker.js.map +1 -1
- package/lib/module/ui/components/signIn/OxyAuthScreen.js.map +1 -1
- package/lib/module/ui/components/signIn/OxyAuthenticatorPanel.js.map +1 -1
- package/lib/module/ui/components/signIn/OxyDeleteAccountPanel.js.map +1 -1
- package/lib/module/ui/components/signIn/OxyLinkCommonsPanel.js.map +1 -1
- package/lib/module/ui/components/signIn/OxyPasswordPanel.js.map +1 -1
- package/lib/module/ui/components/signIn/OxySignInPanel.js.map +1 -1
- package/lib/module/ui/components/signIn/OxySignUpPanel.js.map +1 -1
- package/lib/module/ui/components/signIn/ReauthStep.js.map +1 -1
- package/lib/module/ui/components/signIn/accountFlowParts.js.map +1 -1
- package/lib/module/ui/components/signIn/artwork.js.map +1 -1
- package/lib/module/ui/components/signIn/signInFlowStore.js.map +1 -1
- package/lib/module/ui/components/styles/overlay.js.map +1 -1
- package/lib/module/ui/components/styles/shadow.js.map +1 -1
- package/lib/module/ui/components/surfaces/ActionSheetSurface.js.map +1 -1
- package/lib/module/ui/components/utils/hasTouchHandler.js.map +1 -1
- package/lib/module/ui/components/utils/roundLayoutSize.js.map +1 -1
- package/lib/module/ui/components/utils/splitStyles.js.map +1 -1
- package/lib/module/ui/constants/spacing.js.map +1 -1
- package/lib/module/ui/context/OxyContext.js.map +1 -1
- package/lib/module/ui/context/commitSessionFlow.js.map +1 -1
- package/lib/module/ui/context/hooks/useAuthOperations.js.map +1 -1
- package/lib/module/ui/context/isolatedOAuthSession.js.map +1 -1
- package/lib/module/ui/context/useOxyAccountGraph.js.map +1 -1
- package/lib/module/ui/hooks/accountDialogSnapshot.js.map +1 -1
- package/lib/module/ui/hooks/accountQueryPersistence.js.map +1 -1
- package/lib/module/ui/hooks/mutations/mutationFactory.js.map +1 -1
- package/lib/module/ui/hooks/mutations/useAccountMutations.js.map +1 -1
- package/lib/module/ui/hooks/persistedQueryCache.js.map +1 -1
- package/lib/module/ui/hooks/queries/queryKeys.js.map +1 -1
- package/lib/module/ui/hooks/queries/useAccountQueries.js.map +1 -1
- package/lib/module/ui/hooks/queries/useFileQueries.js.map +1 -1
- package/lib/module/ui/hooks/queries/usePaymentQueries.js.map +1 -1
- package/lib/module/ui/hooks/queries/usePersonalPlans.js.map +1 -1
- package/lib/module/ui/hooks/queries/useSecurityQueries.js.map +1 -1
- package/lib/module/ui/hooks/queries/useServicesQueries.js.map +1 -1
- package/lib/module/ui/hooks/queries/userCache.js +38 -38
- package/lib/module/ui/hooks/queries/userCache.js.map +1 -1
- package/lib/module/ui/hooks/queryClient.js.map +1 -1
- package/lib/module/ui/hooks/useAssets.js.map +1 -1
- package/lib/module/ui/hooks/useAsyncAction.js.map +1 -1
- package/lib/module/ui/hooks/useAuth.js.map +1 -1
- package/lib/module/ui/hooks/useAvatarPicker.js.map +1 -1
- package/lib/module/ui/hooks/useDeviceSwitcher.js.map +1 -1
- package/lib/module/ui/hooks/useFileFiltering.js.map +1 -1
- package/lib/module/ui/hooks/useFollow.js.map +1 -1
- package/lib/module/ui/hooks/useI18n.js.map +1 -1
- package/lib/module/ui/hooks/useProfileEditing.js.map +1 -1
- package/lib/module/ui/hooks/useReduceMotion.js.map +1 -1
- package/lib/module/ui/hooks/useResolvedFileUrls.js.map +1 -1
- package/lib/module/ui/hooks/useSessionManagement.js.map +1 -1
- package/lib/module/ui/hooks/useSettingToggle.js.map +1 -1
- package/lib/module/ui/hooks/useStorage.js.map +1 -1
- package/lib/module/ui/hooks/useSurfaceFrameWidth.js.map +1 -1
- package/lib/module/ui/icons/Ionicons.js.map +1 -1
- package/lib/module/ui/icons/MaterialCommunityIcons.js.map +1 -1
- package/lib/module/ui/icons/decorativeIconSet.js.map +1 -1
- package/lib/module/ui/index.js.map +1 -1
- package/lib/module/ui/isFrontend.js.map +1 -1
- package/lib/module/ui/navigation/bottomSheetManager.js.map +1 -1
- package/lib/module/ui/navigation/routes.js.map +1 -1
- package/lib/module/ui/navigation/surfaces.js.map +1 -1
- package/lib/module/ui/oauth/applicationSessionLane.js.map +1 -1
- package/lib/module/ui/oauth/browserAuthTransport.js.map +1 -1
- package/lib/module/ui/oauth/browserBridge.js.map +1 -1
- package/lib/module/ui/oauth/completeOAuthCode.js.map +1 -1
- package/lib/module/ui/oauth/nativeAuthTransport.js.map +1 -1
- package/lib/module/ui/oauth/oauthHandshake.js.map +1 -1
- package/lib/module/ui/oauth/oauthPopup.js.map +1 -1
- package/lib/module/ui/oauth/oauthPopupMessages.js.map +1 -1
- package/lib/module/ui/runtime/createOxyRuntime.js.map +1 -1
- package/lib/module/ui/screens/AccountMembersScreen.js.map +1 -1
- package/lib/module/ui/screens/AccountSecurityPanelScreen.js.map +1 -1
- package/lib/module/ui/screens/AccountSettingsScreen.js.map +1 -1
- package/lib/module/ui/screens/AccountVerificationScreen.js.map +1 -1
- package/lib/module/ui/screens/AppInfoScreen.js.map +1 -1
- package/lib/module/ui/screens/AvatarCropScreen.js.map +1 -1
- package/lib/module/ui/screens/ChangeAvatarScreen.js.map +1 -1
- package/lib/module/ui/screens/ConnectedAppsScreen.js.map +1 -1
- package/lib/module/ui/screens/CreateAccountScreen.js.map +1 -1
- package/lib/module/ui/screens/DomainsScreen.js.map +1 -1
- package/lib/module/ui/screens/EditProfileFieldScreen.js +1 -1
- package/lib/module/ui/screens/EditProfileFieldScreen.js.map +1 -1
- package/lib/module/ui/screens/EditProfileScreen.js.map +1 -1
- package/lib/module/ui/screens/FileManagementScreen.js +2 -5
- package/lib/module/ui/screens/FileManagementScreen.js.map +1 -1
- package/lib/module/ui/screens/HelpSupportScreen.js.map +1 -1
- package/lib/module/ui/screens/HistoryViewScreen.js.map +1 -1
- package/lib/module/ui/screens/LanguageSelectorScreen.js.map +1 -1
- package/lib/module/ui/screens/LearnMoreUsernamesScreen.js.map +1 -1
- package/lib/module/ui/screens/LegalDocumentsScreen.js.map +1 -1
- package/lib/module/ui/screens/ManageAccountScreen.js.map +1 -1
- package/lib/module/ui/screens/NotificationsScreen.js.map +1 -1
- package/lib/module/ui/screens/PaymentGatewayScreen.js.map +1 -1
- package/lib/module/ui/screens/PreferencesScreen.js.map +1 -1
- package/lib/module/ui/screens/PrivacySettingsScreen.js +3 -3
- package/lib/module/ui/screens/PrivacySettingsScreen.js.map +1 -1
- package/lib/module/ui/screens/ProfileScreen.js.map +1 -1
- package/lib/module/ui/screens/SearchSettingsScreen.js.map +1 -1
- package/lib/module/ui/screens/UserLinksScreen.js.map +1 -1
- package/lib/module/ui/screens/UserListScreen.js +1 -1
- package/lib/module/ui/screens/UserListScreen.js.map +1 -1
- package/lib/module/ui/screens/WelcomeNewUserScreen.js.map +1 -1
- package/lib/module/ui/screens/fileManagement/FileLibraryError.js.map +1 -1
- package/lib/module/ui/screens/fileManagement/FileListSection.js.map +1 -1
- package/lib/module/ui/screens/fileManagement/PhotoPickerSection.js +7 -7
- package/lib/module/ui/screens/fileManagement/PhotoPickerSection.js.map +1 -1
- package/lib/module/ui/screens/fileManagement/UploadBar.js.map +1 -1
- package/lib/module/ui/screens/fileManagement/hooks/useFileUploadState.js.map +1 -1
- package/lib/module/ui/screens/fileManagement/photoGridLayout.js.map +1 -1
- package/lib/module/ui/screens/fileManagement/shared.js.map +1 -1
- package/lib/module/ui/screens/linkFormat.js.map +1 -1
- package/lib/module/ui/screens/trust/TrustAboutScreen.js.map +1 -1
- package/lib/module/ui/screens/trust/TrustCenterScreen.js.map +1 -1
- package/lib/module/ui/screens/trust/TrustFAQScreen.js.map +1 -1
- package/lib/module/ui/screens/trust/TrustLeaderboardScreen.js.map +1 -1
- package/lib/module/ui/screens/trust/TrustRewardsScreen.js.map +1 -1
- package/lib/module/ui/screens/trust/TrustRulesScreen.js.map +1 -1
- package/lib/module/ui/server.js.map +1 -1
- package/lib/module/ui/session/authStore.js.map +1 -1
- package/lib/module/ui/session/backgroundSession.js.map +1 -1
- package/lib/module/ui/session/createSessionClient.js.map +1 -1
- package/lib/module/ui/session/deviceCredentialTracker.js.map +1 -1
- package/lib/module/ui/session/identityBinding.js.map +1 -1
- package/lib/module/ui/session/sharedDeviceCredentialStore.js.map +1 -1
- package/lib/module/ui/session/tokenLossRecovery.js.map +1 -1
- package/lib/module/ui/session/tokenTransport.js.map +1 -1
- package/lib/module/ui/stores/assetStore.js.map +1 -1
- package/lib/module/ui/stores/followStore.js.map +1 -1
- package/lib/module/ui/utils/accountDeletionHandoff.js.map +1 -1
- package/lib/module/ui/utils/avatarUtils.js.map +1 -1
- package/lib/module/ui/utils/clipboard.native.js +23 -6
- package/lib/module/ui/utils/clipboard.native.js.map +1 -1
- package/lib/module/ui/utils/commonsStoreLinks.js.map +1 -1
- package/lib/module/ui/utils/errorHandlers.js.map +1 -1
- package/lib/module/ui/utils/fileManagement.js +25 -25
- package/lib/module/ui/utils/fileManagement.js.map +1 -1
- package/lib/module/ui/utils/iconNames.js.map +1 -1
- package/lib/module/ui/utils/sessionHelpers.js.map +1 -1
- package/lib/module/ui/utils/userUtils.js.map +1 -1
- package/lib/module/utils/hookUtils.js +2 -4
- package/lib/module/utils/hookUtils.js.map +1 -1
- package/lib/typescript/commonjs/assets/icons/OxyServices.d.ts.map +1 -1
- package/lib/typescript/commonjs/assets/illustrations/HighFive.d.ts.map +1 -1
- package/lib/typescript/commonjs/index.d.ts +4 -4
- package/lib/typescript/commonjs/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/notifications/deviceNotifications.d.ts +8 -4
- package/lib/typescript/commonjs/notifications/deviceNotifications.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/analytics/productAnalytics.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/boot/runProviderColdBoot.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/client.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/BenefitList.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/FollowButton.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/FollowTargetButton.d.ts +1 -1
- package/lib/typescript/commonjs/ui/components/FollowTargetButton.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/LanguageBridge.d.ts +1 -1
- package/lib/typescript/commonjs/ui/components/LanguageBridge.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/OxyAuthChooser.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/OxyAuthPrompt.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/OxyConsentScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/OxyProvider.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/OxySignInButton.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/OxySignInRequestSurface.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/PeableButton.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/ProfileButton.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/ProfileSummaryCard.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/RequireOxyAuth.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/SettingsIcon.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/SurfaceHeaderAction.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/SurfaceScreen.d.ts +1 -1
- package/lib/typescript/commonjs/ui/components/SurfaceScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/authChooser/AccountsMenuView.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/authChooser/TroubleDisclosure.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/authChooser/requestSurfaces.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/authChooser/types.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/feedback/constants.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/feedback/types.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/feedback/useFeedbackForm.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/fileManagement/FileDetailsModal.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/fileManagement/FileViewer.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/fileManagement/UploadPreview.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/followButtonAccessibility.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/followRules.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/icon/FAIRWalletIcon.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/logo/LogoText.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/modals/DeleteAccountModal.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/oauthNavigation.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/payment/PaymentDetailsStep.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/payment/PaymentMethodStep.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/payment/PaymentReviewStep.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/payment/PaymentSuccessStep.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/payment/PaymentSummaryStep.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/payment/constants.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/payment/paymentStyles.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/payment/types.d.ts +6 -6
- package/lib/typescript/commonjs/ui/components/payment/types.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/photogrid/JustifiedPhotoGrid.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/signIn/InlineCommonsQr.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/signIn/OxyAccountPicker.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/signIn/OxyAuthScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/signIn/OxyAuthenticatorPanel.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/signIn/OxyDeleteAccountPanel.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/signIn/OxyLinkCommonsPanel.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/signIn/OxyPasswordPanel.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/signIn/OxySignInPanel.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/signIn/OxySignUpPanel.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/signIn/ReauthStep.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/signIn/accountFlowParts.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/signIn/artwork.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/signIn/signInFlowStore.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/styles/overlay.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/surfaces/ActionSheetSurface.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/utils/hasTouchHandler.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/utils/roundLayoutSize.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/utils/splitStyles.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/context/OxyContext.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/context/commitSessionFlow.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/context/hooks/useAuthOperations.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/context/isolatedOAuthSession.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/context/oxyContextTypes.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/context/useOxyAccountGraph.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/accountDialogSnapshot.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/accountQueryPersistence.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/mutations/mutationFactory.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/mutations/useAccountMutations.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/persistedQueryCache.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/queries/paymentTypes.d.ts +2 -2
- package/lib/typescript/commonjs/ui/hooks/queries/queryKeys.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/queries/useAccountQueries.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/queries/useFileQueries.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/queries/usePaymentQueries.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/queries/usePersonalPlans.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/queries/useSecurityQueries.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/queries/useServicesQueries.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/queries/userCache.d.ts +5 -5
- package/lib/typescript/commonjs/ui/hooks/queries/userCache.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/queryClient.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/useAssets.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/useAsyncAction.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/useAuth.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/useAvatarPicker.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/useDeviceSwitcher.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/useFollow.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/useI18n.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/useProfileEditing.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/useResolvedFileUrls.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/useSessionManagement.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/useSettingToggle.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/useStorage.d.ts +1 -1
- package/lib/typescript/commonjs/ui/hooks/useStorage.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/useSurfaceFrameWidth.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/icons/Ionicons.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/icons/MaterialCommunityIcons.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/icons/decorativeIconSet.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/isFrontend.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/navigation/routes.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/navigation/surfaces.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/oauth/applicationSessionLane.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/oauth/browserAuthTransport.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/oauth/browserBridge.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/oauth/completeOAuthCode.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/oauth/nativeAuthTransport.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/oauth/oauthHandshake.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/oauth/oauthPopup.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/oauth/oauthPopupMessages.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/oauth/types.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/runtime/createOxyRuntime.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/AccountMembersScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/AccountSecurityPanelScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/AccountSettingsScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/AccountVerificationScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/AppInfoScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/AvatarCropScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/ChangeAvatarScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/ConnectedAppsScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/CreateAccountScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/DomainsScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/EditProfileFieldScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/EditProfileScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/FileManagementScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/HelpSupportScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/HistoryViewScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/LanguageSelectorScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/LearnMoreUsernamesScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/LegalDocumentsScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/ManageAccountScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/NotificationsScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/PaymentGatewayScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/PreferencesScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/PrivacySettingsScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/ProfileScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/SearchSettingsScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/UserLinksScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/UserListScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/WelcomeNewUserScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/fileManagement/FileLibraryError.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/fileManagement/FileListSection.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/fileManagement/PhotoPickerSection.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/fileManagement/UploadBar.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/fileManagement/hooks/useFileUploadState.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/fileManagement/photoGridLayout.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/fileManagement/shared.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/linkFormat.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/trust/TrustAboutScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/trust/TrustCenterScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/trust/TrustFAQScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/trust/TrustLeaderboardScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/trust/TrustRewardsScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/trust/TrustRulesScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/server.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/session/authStore.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/session/backgroundSession.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/session/createSessionClient.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/session/deviceCredentialTracker.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/session/identityBinding.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/session/sharedDeviceCredentialStore.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/session/tokenLossRecovery.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/session/tokenTransport.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/stores/assetStore.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/stores/followStore.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/types/fileManagement.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/types/navigation.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/types/surfaceScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/utils/accountDeletionHandoff.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/utils/avatarUtils.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/utils/clipboard.native.d.ts +16 -5
- package/lib/typescript/commonjs/ui/utils/clipboard.native.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/utils/commonsStoreLinks.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/utils/errorHandlers.d.ts +1 -1
- package/lib/typescript/commonjs/ui/utils/errorHandlers.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/utils/fileManagement.d.ts +4 -4
- package/lib/typescript/commonjs/ui/utils/fileManagement.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/utils/sessionHelpers.d.ts +1 -1
- package/lib/typescript/commonjs/ui/utils/sessionHelpers.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/utils/userUtils.d.ts.map +1 -1
- package/lib/typescript/commonjs/utils/hookUtils.d.ts.map +1 -1
- package/lib/typescript/module/assets/icons/OxyServices.d.ts.map +1 -1
- package/lib/typescript/module/assets/illustrations/HighFive.d.ts.map +1 -1
- package/lib/typescript/module/index.d.ts +4 -4
- package/lib/typescript/module/index.d.ts.map +1 -1
- package/lib/typescript/module/notifications/deviceNotifications.d.ts +8 -4
- package/lib/typescript/module/notifications/deviceNotifications.d.ts.map +1 -1
- package/lib/typescript/module/ui/analytics/productAnalytics.d.ts.map +1 -1
- package/lib/typescript/module/ui/boot/runProviderColdBoot.d.ts.map +1 -1
- package/lib/typescript/module/ui/client.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/BenefitList.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/FollowButton.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/FollowTargetButton.d.ts +1 -1
- package/lib/typescript/module/ui/components/FollowTargetButton.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/LanguageBridge.d.ts +1 -1
- package/lib/typescript/module/ui/components/LanguageBridge.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/OxyAuthChooser.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/OxyAuthPrompt.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/OxyConsentScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/OxyProvider.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/OxySignInButton.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/OxySignInRequestSurface.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/PeableButton.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/ProfileButton.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/ProfileSummaryCard.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/RequireOxyAuth.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/SettingsIcon.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/SurfaceHeaderAction.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/SurfaceScreen.d.ts +1 -1
- package/lib/typescript/module/ui/components/SurfaceScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/authChooser/AccountsMenuView.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/authChooser/TroubleDisclosure.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/authChooser/requestSurfaces.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/authChooser/types.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/feedback/constants.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/feedback/types.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/feedback/useFeedbackForm.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/fileManagement/FileDetailsModal.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/fileManagement/FileViewer.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/fileManagement/UploadPreview.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/followButtonAccessibility.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/followRules.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/icon/FAIRWalletIcon.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/logo/LogoText.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/modals/DeleteAccountModal.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/oauthNavigation.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/payment/PaymentDetailsStep.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/payment/PaymentMethodStep.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/payment/PaymentReviewStep.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/payment/PaymentSuccessStep.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/payment/PaymentSummaryStep.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/payment/constants.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/payment/paymentStyles.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/payment/types.d.ts +6 -6
- package/lib/typescript/module/ui/components/payment/types.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/photogrid/JustifiedPhotoGrid.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/signIn/InlineCommonsQr.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/signIn/OxyAccountPicker.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/signIn/OxyAuthScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/signIn/OxyAuthenticatorPanel.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/signIn/OxyDeleteAccountPanel.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/signIn/OxyLinkCommonsPanel.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/signIn/OxyPasswordPanel.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/signIn/OxySignInPanel.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/signIn/OxySignUpPanel.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/signIn/ReauthStep.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/signIn/accountFlowParts.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/signIn/artwork.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/signIn/signInFlowStore.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/styles/overlay.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/surfaces/ActionSheetSurface.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/utils/hasTouchHandler.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/utils/roundLayoutSize.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/utils/splitStyles.d.ts.map +1 -1
- package/lib/typescript/module/ui/context/OxyContext.d.ts.map +1 -1
- package/lib/typescript/module/ui/context/commitSessionFlow.d.ts.map +1 -1
- package/lib/typescript/module/ui/context/hooks/useAuthOperations.d.ts.map +1 -1
- package/lib/typescript/module/ui/context/isolatedOAuthSession.d.ts.map +1 -1
- package/lib/typescript/module/ui/context/oxyContextTypes.d.ts.map +1 -1
- package/lib/typescript/module/ui/context/useOxyAccountGraph.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/accountDialogSnapshot.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/accountQueryPersistence.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/mutations/mutationFactory.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/mutations/useAccountMutations.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/persistedQueryCache.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/queries/paymentTypes.d.ts +2 -2
- package/lib/typescript/module/ui/hooks/queries/queryKeys.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/queries/useAccountQueries.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/queries/useFileQueries.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/queries/usePaymentQueries.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/queries/usePersonalPlans.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/queries/useSecurityQueries.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/queries/useServicesQueries.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/queries/userCache.d.ts +5 -5
- package/lib/typescript/module/ui/hooks/queries/userCache.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/queryClient.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/useAssets.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/useAsyncAction.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/useAuth.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/useAvatarPicker.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/useDeviceSwitcher.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/useFollow.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/useI18n.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/useProfileEditing.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/useResolvedFileUrls.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/useSessionManagement.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/useSettingToggle.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/useStorage.d.ts +1 -1
- package/lib/typescript/module/ui/hooks/useStorage.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/useSurfaceFrameWidth.d.ts.map +1 -1
- package/lib/typescript/module/ui/icons/Ionicons.d.ts.map +1 -1
- package/lib/typescript/module/ui/icons/MaterialCommunityIcons.d.ts.map +1 -1
- package/lib/typescript/module/ui/icons/decorativeIconSet.d.ts.map +1 -1
- package/lib/typescript/module/ui/index.d.ts.map +1 -1
- package/lib/typescript/module/ui/isFrontend.d.ts.map +1 -1
- package/lib/typescript/module/ui/navigation/routes.d.ts.map +1 -1
- package/lib/typescript/module/ui/navigation/surfaces.d.ts.map +1 -1
- package/lib/typescript/module/ui/oauth/applicationSessionLane.d.ts.map +1 -1
- package/lib/typescript/module/ui/oauth/browserAuthTransport.d.ts.map +1 -1
- package/lib/typescript/module/ui/oauth/browserBridge.d.ts.map +1 -1
- package/lib/typescript/module/ui/oauth/completeOAuthCode.d.ts.map +1 -1
- package/lib/typescript/module/ui/oauth/nativeAuthTransport.d.ts.map +1 -1
- package/lib/typescript/module/ui/oauth/oauthHandshake.d.ts.map +1 -1
- package/lib/typescript/module/ui/oauth/oauthPopup.d.ts.map +1 -1
- package/lib/typescript/module/ui/oauth/oauthPopupMessages.d.ts.map +1 -1
- package/lib/typescript/module/ui/oauth/types.d.ts.map +1 -1
- package/lib/typescript/module/ui/runtime/createOxyRuntime.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/AccountMembersScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/AccountSecurityPanelScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/AccountSettingsScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/AccountVerificationScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/AppInfoScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/AvatarCropScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/ChangeAvatarScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/ConnectedAppsScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/CreateAccountScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/DomainsScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/EditProfileFieldScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/EditProfileScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/FileManagementScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/HelpSupportScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/HistoryViewScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/LanguageSelectorScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/LearnMoreUsernamesScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/LegalDocumentsScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/ManageAccountScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/NotificationsScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/PaymentGatewayScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/PreferencesScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/PrivacySettingsScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/ProfileScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/SearchSettingsScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/UserLinksScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/UserListScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/WelcomeNewUserScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/fileManagement/FileLibraryError.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/fileManagement/FileListSection.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/fileManagement/PhotoPickerSection.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/fileManagement/UploadBar.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/fileManagement/hooks/useFileUploadState.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/fileManagement/photoGridLayout.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/fileManagement/shared.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/linkFormat.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/trust/TrustAboutScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/trust/TrustCenterScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/trust/TrustFAQScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/trust/TrustLeaderboardScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/trust/TrustRewardsScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/trust/TrustRulesScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/server.d.ts.map +1 -1
- package/lib/typescript/module/ui/session/authStore.d.ts.map +1 -1
- package/lib/typescript/module/ui/session/backgroundSession.d.ts.map +1 -1
- package/lib/typescript/module/ui/session/createSessionClient.d.ts.map +1 -1
- package/lib/typescript/module/ui/session/deviceCredentialTracker.d.ts.map +1 -1
- package/lib/typescript/module/ui/session/identityBinding.d.ts.map +1 -1
- package/lib/typescript/module/ui/session/sharedDeviceCredentialStore.d.ts.map +1 -1
- package/lib/typescript/module/ui/session/tokenLossRecovery.d.ts.map +1 -1
- package/lib/typescript/module/ui/session/tokenTransport.d.ts.map +1 -1
- package/lib/typescript/module/ui/stores/assetStore.d.ts.map +1 -1
- package/lib/typescript/module/ui/stores/followStore.d.ts.map +1 -1
- package/lib/typescript/module/ui/types/fileManagement.d.ts.map +1 -1
- package/lib/typescript/module/ui/types/navigation.d.ts.map +1 -1
- package/lib/typescript/module/ui/types/surfaceScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/utils/accountDeletionHandoff.d.ts.map +1 -1
- package/lib/typescript/module/ui/utils/avatarUtils.d.ts.map +1 -1
- package/lib/typescript/module/ui/utils/clipboard.native.d.ts +16 -5
- package/lib/typescript/module/ui/utils/clipboard.native.d.ts.map +1 -1
- package/lib/typescript/module/ui/utils/commonsStoreLinks.d.ts.map +1 -1
- package/lib/typescript/module/ui/utils/errorHandlers.d.ts +1 -1
- package/lib/typescript/module/ui/utils/errorHandlers.d.ts.map +1 -1
- package/lib/typescript/module/ui/utils/fileManagement.d.ts +4 -4
- package/lib/typescript/module/ui/utils/fileManagement.d.ts.map +1 -1
- package/lib/typescript/module/ui/utils/sessionHelpers.d.ts +1 -1
- package/lib/typescript/module/ui/utils/sessionHelpers.d.ts.map +1 -1
- package/lib/typescript/module/ui/utils/userUtils.d.ts.map +1 -1
- package/lib/typescript/module/utils/hookUtils.d.ts.map +1 -1
- package/lib/typescript/types/expo-crypto.d.ts +2 -4
- package/lib/typescript/types/expo-document-picker.d.ts +27 -28
- package/lib/typescript/types/expo-image-picker.d.ts +27 -27
- package/lib/typescript/types/expo-secure-store.d.ts +11 -4
- package/lib/typescript/types/express.d.ts +22 -7
- package/package.json +4 -5
- package/src/assets/icons/OxyServices.tsx +42 -40
- package/src/assets/illustrations/HighFive.tsx +58 -31
- package/src/index.ts +99 -86
- package/src/notifications/deviceNotifications.ts +9 -7
- package/src/types/expo-crypto.d.ts +2 -4
- package/src/types/expo-document-picker.d.ts +27 -28
- package/src/types/expo-image-picker.d.ts +27 -27
- package/src/types/expo-secure-store.d.ts +11 -4
- package/src/types/express.d.ts +22 -7
- package/src/ui/analytics/productAnalytics.tsx +5 -5
- package/src/ui/boot/__tests__/coldBootNoIdpRedirect.test.ts +91 -29
- package/src/ui/boot/runProviderColdBoot.ts +12 -3
- package/src/ui/client.ts +31 -31
- package/src/ui/components/BenefitList.tsx +78 -77
- package/src/ui/components/BloomLocaleBridge.tsx +3 -3
- package/src/ui/components/FollowButton.tsx +88 -84
- package/src/ui/components/FollowTargetButton.tsx +15 -6
- package/src/ui/components/LanguageBridge.tsx +24 -19
- package/src/ui/components/OxyAuthChooser.tsx +17 -3
- package/src/ui/components/OxyAuthPrompt.tsx +79 -98
- package/src/ui/components/OxyConsentScreen.tsx +51 -12
- package/src/ui/components/OxyProvider.tsx +189 -182
- package/src/ui/components/OxySignInButton.tsx +415 -405
- package/src/ui/components/OxySignInRequestSurface.tsx +7 -1
- package/src/ui/components/PeableButton.tsx +57 -49
- package/src/ui/components/ProfileButton.tsx +158 -109
- package/src/ui/components/ProfileSummaryCard.tsx +64 -64
- package/src/ui/components/RequireOxyAuth.tsx +15 -3
- package/src/ui/components/SettingsIcon.tsx +24 -19
- package/src/ui/components/SurfaceHeaderAction.tsx +6 -1
- package/src/ui/components/SurfaceScreen.tsx +21 -16
- package/src/ui/components/__tests__/BloomLocaleBridge.test.tsx +1 -1
- package/src/ui/components/__tests__/LanguageBridge.test.tsx +15 -5
- package/src/ui/components/__tests__/OxyConsentScreen.test.tsx +21 -11
- package/src/ui/components/__tests__/followButtonAccessibility.test.tsx +42 -15
- package/src/ui/components/__tests__/followTargetButton.test.ts +23 -20
- package/src/ui/components/authChooser/AccountsMenuView.tsx +70 -56
- package/src/ui/components/authChooser/TroubleDisclosure.tsx +6 -1
- package/src/ui/components/authChooser/requestSurfaces.tsx +3 -1
- package/src/ui/components/authChooser/types.ts +6 -1
- package/src/ui/components/feedback/constants.ts +36 -12
- package/src/ui/components/feedback/types.ts +30 -30
- package/src/ui/components/feedback/useFeedbackForm.ts +38 -35
- package/src/ui/components/fileManagement/FileDetailsModal.tsx +86 -92
- package/src/ui/components/fileManagement/FileViewer.tsx +362 -338
- package/src/ui/components/fileManagement/UploadPreview.tsx +134 -127
- package/src/ui/components/followButtonAccessibility.ts +6 -2
- package/src/ui/components/followRules.ts +6 -2
- package/src/ui/components/icon/FAIRWalletIcon.tsx +47 -35
- package/src/ui/components/logo/LogoText.tsx +6 -1
- package/src/ui/components/modals/DeleteAccountModal.tsx +89 -83
- package/src/ui/components/oauthNavigation.ts +54 -56
- package/src/ui/components/payment/PaymentDetailsStep.tsx +269 -201
- package/src/ui/components/payment/PaymentMethodStep.tsx +88 -68
- package/src/ui/components/payment/PaymentReviewStep.tsx +119 -102
- package/src/ui/components/payment/PaymentSuccessStep.tsx +48 -48
- package/src/ui/components/payment/PaymentSummaryStep.tsx +167 -124
- package/src/ui/components/payment/constants.ts +38 -23
- package/src/ui/components/payment/paymentStyles.ts +252 -251
- package/src/ui/components/payment/types.ts +24 -24
- package/src/ui/components/photogrid/JustifiedPhotoGrid.tsx +207 -183
- package/src/ui/components/photogrid/__tests__/chunkPhotos.test.ts +32 -33
- package/src/ui/components/signIn/InlineCommonsQr.tsx +14 -6
- package/src/ui/components/signIn/OxyAccountPicker.tsx +19 -4
- package/src/ui/components/signIn/OxyAuthScreen.tsx +21 -11
- package/src/ui/components/signIn/OxyAuthenticatorPanel.tsx +47 -13
- package/src/ui/components/signIn/OxyDeleteAccountPanel.tsx +14 -4
- package/src/ui/components/signIn/OxyLinkCommonsPanel.tsx +69 -15
- package/src/ui/components/signIn/OxyPasswordPanel.tsx +19 -4
- package/src/ui/components/signIn/OxySignInPanel.tsx +74 -21
- package/src/ui/components/signIn/OxySignUpPanel.tsx +60 -12
- package/src/ui/components/signIn/ReauthStep.tsx +26 -5
- package/src/ui/components/signIn/accountFlowParts.tsx +45 -16
- package/src/ui/components/signIn/artwork.ts +3 -1
- package/src/ui/components/signIn/signInFlowStore.ts +5 -1
- package/src/ui/components/styles/overlay.tsx +10 -11
- package/src/ui/components/styles/shadow.tsx +59 -59
- package/src/ui/components/surfaces/ActionSheetSurface.tsx +51 -61
- package/src/ui/components/utils/hasTouchHandler.tsx +3 -13
- package/src/ui/components/utils/roundLayoutSize.ts +1 -2
- package/src/ui/components/utils/splitStyles.ts +2 -5
- package/src/ui/constants/spacing.ts +8 -9
- package/src/ui/context/OxyContext.tsx +324 -140
- package/src/ui/context/__tests__/commitSessionFlow.test.ts +8 -3
- package/src/ui/context/__tests__/isolatedOAuthSession.test.ts +11 -3
- package/src/ui/context/commitSessionFlow.ts +15 -3
- package/src/ui/context/hooks/useAuthOperations.ts +54 -16
- package/src/ui/context/isolatedOAuthSession.ts +4 -1
- package/src/ui/context/oxyContextTypes.ts +26 -9
- package/src/ui/context/useOxyAccountGraph.ts +26 -4
- package/src/ui/hooks/accountDialogSnapshot.ts +3 -1
- package/src/ui/hooks/accountQueryPersistence.ts +16 -5
- package/src/ui/hooks/mutations/mutationFactory.ts +11 -6
- package/src/ui/hooks/mutations/useAccountMutations.ts +77 -54
- package/src/ui/hooks/mutations/useServicesMutations.ts +10 -11
- package/src/ui/hooks/persistedQueryCache.ts +10 -2
- package/src/ui/hooks/queries/__tests__/userCache.test.ts +72 -17
- package/src/ui/hooks/queries/__tests__/userCacheClear.test.ts +18 -23
- package/src/ui/hooks/queries/paymentTypes.ts +2 -2
- package/src/ui/hooks/queries/queryKeys.ts +5 -5
- package/src/ui/hooks/queries/useAccountQueries.ts +12 -17
- package/src/ui/hooks/queries/useFileQueries.ts +88 -92
- package/src/ui/hooks/queries/usePaymentQueries.ts +13 -26
- package/src/ui/hooks/queries/usePersonalPlans.ts +14 -6
- package/src/ui/hooks/queries/useSecurityQueries.ts +16 -29
- package/src/ui/hooks/queries/useServicesQueries.ts +17 -23
- package/src/ui/hooks/queries/userCache.ts +249 -270
- package/src/ui/hooks/queryClient.ts +9 -5
- package/src/ui/hooks/useAssets.ts +166 -160
- package/src/ui/hooks/useAsyncAction.ts +92 -91
- package/src/ui/hooks/useAuth.ts +45 -42
- package/src/ui/hooks/useAvatarPicker.ts +2 -5
- package/src/ui/hooks/useDeviceManagement.ts +0 -2
- package/src/ui/hooks/useDeviceSwitcher.ts +73 -68
- package/src/ui/hooks/useFileFiltering.ts +2 -2
- package/src/ui/hooks/useFollow.ts +139 -67
- package/src/ui/hooks/useFollowTarget.ts +11 -11
- package/src/ui/hooks/useI18n.ts +7 -2
- package/src/ui/hooks/useProfileEditing.ts +167 -155
- package/src/ui/hooks/useQueryClient.ts +2 -3
- package/src/ui/hooks/useReduceMotion.ts +21 -21
- package/src/ui/hooks/useResolvedFileUrls.ts +5 -1
- package/src/ui/hooks/useSessionManagement.ts +3 -1
- package/src/ui/hooks/useSettingToggle.ts +122 -114
- package/src/ui/hooks/useStorage.ts +1 -4
- package/src/ui/hooks/useSurfaceFrameWidth.ts +3 -1
- package/src/ui/icons/Ionicons.ts +1 -5
- package/src/ui/icons/MaterialCommunityIcons.ts +1 -5
- package/src/ui/icons/__tests__/decorativeIconSet.test.tsx +3 -1
- package/src/ui/icons/decorativeIconSet.ts +13 -2
- package/src/ui/index.ts +4 -4
- package/src/ui/isFrontend.ts +3 -2
- package/src/ui/navigation/__tests__/getSurfaceConfig.test.ts +83 -83
- package/src/ui/navigation/__tests__/surfaceNavStack.test.ts +8 -2
- package/src/ui/navigation/bottomSheetManager.ts +1 -1
- package/src/ui/navigation/routes.ts +90 -88
- package/src/ui/navigation/surfaces.ts +7 -6
- package/src/ui/oauth/__tests__/browserAuthTransport.test.ts +18 -11
- package/src/ui/oauth/__tests__/browserBridge.test.ts +108 -21
- package/src/ui/oauth/__tests__/completeOAuthCode.test.ts +9 -6
- package/src/ui/oauth/__tests__/explicitOAuthConsent.test.ts +222 -241
- package/src/ui/oauth/__tests__/nativeAuthTransport.test.ts +118 -35
- package/src/ui/oauth/__tests__/oauthBearerCommit.http.test.ts +60 -18
- package/src/ui/oauth/__tests__/oauthPopup.test.ts +2 -7
- package/src/ui/oauth/__tests__/oauthPopupMessages.test.ts +9 -7
- package/src/ui/oauth/__tests__/sharedCompletionPath.test.ts +4 -5
- package/src/ui/oauth/applicationSessionLane.ts +12 -3
- package/src/ui/oauth/browserAuthTransport.ts +15 -7
- package/src/ui/oauth/browserBridge.ts +22 -5
- package/src/ui/oauth/completeOAuthCode.ts +9 -6
- package/src/ui/oauth/nativeAuthTransport.ts +73 -20
- package/src/ui/oauth/oauthHandshake.ts +6 -1
- package/src/ui/oauth/oauthPopup.ts +6 -4
- package/src/ui/oauth/oauthPopupMessages.ts +3 -4
- package/src/ui/oauth/types.ts +1 -3
- package/src/ui/runtime/createOxyRuntime.ts +21 -4
- package/src/ui/screens/AccountMembersScreen.tsx +274 -204
- package/src/ui/screens/AccountSecurityPanelScreen.tsx +3 -1
- package/src/ui/screens/AccountSettingsScreen.tsx +133 -113
- package/src/ui/screens/AccountVerificationScreen.tsx +176 -161
- package/src/ui/screens/AppInfoScreen.tsx +360 -304
- package/src/ui/screens/AvatarCropScreen.tsx +977 -988
- package/src/ui/screens/ChangeAvatarScreen.tsx +257 -253
- package/src/ui/screens/ConnectedAppsScreen.tsx +117 -130
- package/src/ui/screens/CreateAccountScreen.tsx +173 -129
- package/src/ui/screens/DomainsScreen.tsx +157 -140
- package/src/ui/screens/EditProfileFieldScreen.tsx +693 -663
- package/src/ui/screens/EditProfileScreen.tsx +106 -100
- package/src/ui/screens/FileManagementScreen.tsx +1505 -1162
- package/src/ui/screens/HelpSupportScreen.tsx +88 -75
- package/src/ui/screens/HistoryViewScreen.tsx +143 -102
- package/src/ui/screens/LanguageSelectorScreen.tsx +206 -199
- package/src/ui/screens/LearnMoreUsernamesScreen.tsx +92 -110
- package/src/ui/screens/LegalDocumentsScreen.tsx +134 -193
- package/src/ui/screens/ManageAccountScreen.tsx +649 -871
- package/src/ui/screens/NotificationsScreen.tsx +111 -143
- package/src/ui/screens/PaymentGatewayScreen.tsx +229 -244
- package/src/ui/screens/PreferencesScreen.tsx +153 -196
- package/src/ui/screens/PrivacySettingsScreen.tsx +509 -351
- package/src/ui/screens/ProfileScreen.tsx +416 -319
- package/src/ui/screens/SearchSettingsScreen.tsx +100 -98
- package/src/ui/screens/UserLinksScreen.tsx +48 -43
- package/src/ui/screens/UserListScreen.tsx +53 -30
- package/src/ui/screens/WelcomeNewUserScreen.tsx +430 -334
- package/src/ui/screens/__tests__/linkFormat.test.ts +58 -62
- package/src/ui/screens/__tests__/photoGridLayout.test.ts +43 -47
- package/src/ui/screens/fileManagement/FileLibraryError.tsx +33 -27
- package/src/ui/screens/fileManagement/FileListSection.tsx +96 -87
- package/src/ui/screens/fileManagement/PhotoPickerSection.tsx +508 -475
- package/src/ui/screens/fileManagement/UploadBar.tsx +26 -16
- package/src/ui/screens/fileManagement/hooks/useFileUploadState.ts +514 -490
- package/src/ui/screens/fileManagement/photoGridLayout.ts +13 -13
- package/src/ui/screens/fileManagement/shared.ts +40 -38
- package/src/ui/screens/linkFormat.ts +14 -14
- package/src/ui/screens/trust/TrustAboutScreen.tsx +53 -51
- package/src/ui/screens/trust/TrustCenterScreen.tsx +156 -214
- package/src/ui/screens/trust/TrustFAQScreen.tsx +60 -67
- package/src/ui/screens/trust/TrustLeaderboardScreen.tsx +183 -183
- package/src/ui/screens/trust/TrustRewardsScreen.tsx +495 -494
- package/src/ui/screens/trust/TrustRulesScreen.tsx +84 -85
- package/src/ui/server.ts +12 -15
- package/src/ui/session/__tests__/authStore.test.ts +6 -1
- package/src/ui/session/__tests__/createSessionClient.test.ts +22 -8
- package/src/ui/session/__tests__/sharedDeviceCredentialStore.test.ts +24 -6
- package/src/ui/session/__tests__/tokenLossRecovery.test.ts +3 -1
- package/src/ui/session/__tests__/tokenTransport.test.ts +9 -2
- package/src/ui/session/authStore.ts +7 -1
- package/src/ui/session/backgroundSession.ts +4 -3
- package/src/ui/session/createSessionClient.ts +17 -5
- package/src/ui/session/deviceCredentialTracker.ts +12 -6
- package/src/ui/session/identityBinding.ts +6 -1
- package/src/ui/session/sharedDeviceCredentialStore.ts +15 -4
- package/src/ui/session/tokenLossRecovery.ts +24 -10
- package/src/ui/session/tokenTransport.ts +5 -1
- package/src/ui/stores/__tests__/followStore.test.ts +20 -7
- package/src/ui/stores/assetStore.ts +209 -207
- package/src/ui/stores/followStore.ts +80 -39
- package/src/ui/stores/followTargetStore.ts +1 -1
- package/src/ui/types/fileManagement.ts +48 -49
- package/src/ui/types/navigation.ts +168 -168
- package/src/ui/types/surfaceScreen.ts +4 -1
- package/src/ui/utils/__tests__/deviceSessionTitle.test.ts +4 -2
- package/src/ui/utils/accountDeletionHandoff.ts +14 -3
- package/src/ui/utils/avatarUtils.ts +7 -6
- package/src/ui/utils/clipboard.native.ts +23 -6
- package/src/ui/utils/commonsStoreLinks.ts +2 -1
- package/src/ui/utils/errorHandlers.ts +7 -12
- package/src/ui/utils/fileManagement.ts +92 -103
- package/src/ui/utils/iconNames.ts +60 -60
- package/src/ui/utils/sessionHelpers.ts +1 -6
- package/src/ui/utils/storageHelpers.ts +0 -1
- package/src/ui/utils/userUtils.ts +2 -6
- package/src/utils/hookUtils.ts +77 -65
|
@@ -3,55 +3,138 @@ import { startNativeOAuthSignIn, type NativeOAuthSignInContext } from '../native
|
|
|
3
3
|
import { openAuthorizeUrlNative } from '../../components/oauthNavigation';
|
|
4
4
|
import { prepareAuthorizeRequest } from '../oauthHandshake';
|
|
5
5
|
jest.mock('../../components/oauthNavigation', () => ({ openAuthorizeUrlNative: jest.fn() }));
|
|
6
|
-
jest.mock('../oauthHandshake', () => ({
|
|
6
|
+
jest.mock('../oauthHandshake', () => ({
|
|
7
|
+
prepareAuthorizeRequest: jest.fn(async () => ({
|
|
8
|
+
authorizeUrl: 'https://auth.oxy.so/authorize',
|
|
9
|
+
handshake: { state: 'expected', codeVerifier: 'verifier' },
|
|
10
|
+
})),
|
|
11
|
+
}));
|
|
7
12
|
const open = openAuthorizeUrlNative as jest.Mock;
|
|
8
13
|
const prepare = prepareAuthorizeRequest as jest.Mock;
|
|
9
14
|
const uri = 'externalapp://oauth/callback?tenant=fixed';
|
|
10
15
|
function fixture() {
|
|
11
|
-
const exchange = jest.fn(async () => ({
|
|
12
|
-
|
|
13
|
-
|
|
16
|
+
const exchange = jest.fn(async () => ({
|
|
17
|
+
sessionId: 'isolated',
|
|
18
|
+
accessToken: 'bearer',
|
|
19
|
+
user: { id: 'user' },
|
|
20
|
+
}));
|
|
21
|
+
const getPublic = jest.fn(async () => ({
|
|
22
|
+
id: 'app',
|
|
23
|
+
name: 'External',
|
|
24
|
+
type: 'third_party',
|
|
25
|
+
isOfficial: false,
|
|
26
|
+
isInternal: false,
|
|
27
|
+
scopes: [],
|
|
28
|
+
}));
|
|
29
|
+
const context: NativeOAuthSignInContext = {
|
|
30
|
+
platform: 'native',
|
|
31
|
+
oxyServices: {
|
|
32
|
+
apps: { getPublic },
|
|
33
|
+
auth: { oauth: { exchangeCode: exchange } },
|
|
34
|
+
} as unknown as OxyServices,
|
|
35
|
+
clientId: 'oxy_dk_registered',
|
|
36
|
+
identityBound: false,
|
|
37
|
+
commitSession: jest.fn(async () => undefined),
|
|
38
|
+
};
|
|
14
39
|
return { context, exchange, getPublic };
|
|
15
40
|
}
|
|
16
|
-
beforeEach(() => {
|
|
41
|
+
beforeEach(() => {
|
|
42
|
+
jest.clearAllMocks();
|
|
43
|
+
open.mockResolvedValue({ redirectUrl: `${uri}&code=legitimate&state=expected` });
|
|
44
|
+
});
|
|
17
45
|
it('uses the common exchange and commits a fixed-query callback without device credentials', async () => {
|
|
18
46
|
const { context, exchange, getPublic } = fixture();
|
|
19
|
-
expect(await startNativeOAuthSignIn(context, { redirectUri: uri })).toEqual({
|
|
47
|
+
expect(await startNativeOAuthSignIn(context, { redirectUri: uri })).toEqual({
|
|
48
|
+
status: 'signed-in',
|
|
49
|
+
});
|
|
20
50
|
expect(getPublic).toHaveBeenCalledWith('oxy_dk_registered', { cache: false });
|
|
21
|
-
expect(open).toHaveBeenCalledWith('https://auth.oxy.so/authorize', uri, {
|
|
22
|
-
|
|
23
|
-
|
|
51
|
+
expect(open).toHaveBeenCalledWith('https://auth.oxy.so/authorize', uri, {
|
|
52
|
+
allowExternalFallback: false,
|
|
53
|
+
});
|
|
54
|
+
expect(exchange).toHaveBeenCalledWith(
|
|
55
|
+
{
|
|
56
|
+
code: 'legitimate',
|
|
57
|
+
clientId: 'oxy_dk_registered',
|
|
58
|
+
redirectUri: uri,
|
|
59
|
+
codeVerifier: 'verifier',
|
|
60
|
+
},
|
|
61
|
+
{ plantTokens: false },
|
|
62
|
+
);
|
|
63
|
+
expect(context.commitSession).toHaveBeenCalledWith(
|
|
64
|
+
expect.objectContaining({
|
|
65
|
+
sessionId: 'isolated',
|
|
66
|
+
userId: 'user',
|
|
67
|
+
deviceId: undefined,
|
|
68
|
+
deviceSecret: undefined,
|
|
69
|
+
}),
|
|
70
|
+
);
|
|
24
71
|
});
|
|
25
72
|
it.each([
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
73
|
+
`${uri}&code=x&state=expected&code=y`,
|
|
74
|
+
`${uri}&code=x&state=expected&state=expected`,
|
|
75
|
+
`${uri}&error=access_denied&state=wrong`,
|
|
76
|
+
`${uri}&error=access_denied&state=expected`,
|
|
77
|
+
`${uri}&code=x&state=wrong`,
|
|
78
|
+
`${uri}&tenant=other&code=x&state=expected`,
|
|
79
|
+
'externalapp://oauth/callback?tenant=other&code=x&state=expected',
|
|
80
|
+
`${uri}/extra?code=x&state=expected`,
|
|
81
|
+
`${uri}&code=x&state=expected#fragment`,
|
|
30
82
|
])('rejects %s before exchange/commit', async (redirectUrl) => {
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
83
|
+
const { context, exchange } = fixture();
|
|
84
|
+
open.mockResolvedValue({ redirectUrl });
|
|
85
|
+
expect((await startNativeOAuthSignIn(context, { redirectUri: uri })).status).toBe('failed');
|
|
86
|
+
expect(exchange).not.toHaveBeenCalled();
|
|
87
|
+
expect(context.commitSession).not.toHaveBeenCalled();
|
|
34
88
|
});
|
|
35
89
|
it('cancellation commits nothing', async () => {
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
if(mode==='client') context.clientId=null;
|
|
44
|
-
if(mode==='identity') context.identityBound=true;
|
|
45
|
-
if(mode==='official') getPublic.mockResolvedValue({ id:'official', name:'Official', type:'first_party', isOfficial:true, isInternal:false, scopes:[] });
|
|
46
|
-
if(mode==='registry-error') getPublic.mockRejectedValue(new Error('unavailable'));
|
|
47
|
-
expect((await startNativeOAuthSignIn(context,{redirectUri:uri})).status).not.toBe('signed-in');
|
|
48
|
-
expect(open).not.toHaveBeenCalled(); expect(prepare).not.toHaveBeenCalled(); expect(exchange).not.toHaveBeenCalled();
|
|
90
|
+
const { context, exchange } = fixture();
|
|
91
|
+
open.mockResolvedValue({ redirectUrl: null });
|
|
92
|
+
expect(await startNativeOAuthSignIn(context, { redirectUri: uri })).toEqual({
|
|
93
|
+
status: 'cancelled',
|
|
94
|
+
});
|
|
95
|
+
expect(exchange).not.toHaveBeenCalled();
|
|
96
|
+
expect(context.commitSession).not.toHaveBeenCalled();
|
|
49
97
|
});
|
|
98
|
+
it.each(['platform', 'client', 'identity', 'official', 'registry-error'])(
|
|
99
|
+
'direct method rejects %s before opening',
|
|
100
|
+
async (mode) => {
|
|
101
|
+
const { context, exchange, getPublic } = fixture();
|
|
102
|
+
if (mode === 'platform') context.platform = 'unsupported';
|
|
103
|
+
if (mode === 'client') context.clientId = null;
|
|
104
|
+
if (mode === 'identity') context.identityBound = true;
|
|
105
|
+
if (mode === 'official')
|
|
106
|
+
getPublic.mockResolvedValue({
|
|
107
|
+
id: 'official',
|
|
108
|
+
name: 'Official',
|
|
109
|
+
type: 'first_party',
|
|
110
|
+
isOfficial: true,
|
|
111
|
+
isInternal: false,
|
|
112
|
+
scopes: [],
|
|
113
|
+
});
|
|
114
|
+
if (mode === 'registry-error') getPublic.mockRejectedValue(new Error('unavailable'));
|
|
115
|
+
expect((await startNativeOAuthSignIn(context, { redirectUri: uri })).status).not.toBe(
|
|
116
|
+
'signed-in',
|
|
117
|
+
);
|
|
118
|
+
expect(open).not.toHaveBeenCalled();
|
|
119
|
+
expect(prepare).not.toHaveBeenCalled();
|
|
120
|
+
expect(exchange).not.toHaveBeenCalled();
|
|
121
|
+
},
|
|
122
|
+
);
|
|
50
123
|
it('rejects reentry without replacing the first handshake', async () => {
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
124
|
+
const { context } = fixture();
|
|
125
|
+
let cancel!: (result: { redirectUrl: null }) => void;
|
|
126
|
+
open.mockImplementation(
|
|
127
|
+
() =>
|
|
128
|
+
new Promise((resolve) => {
|
|
129
|
+
cancel = resolve;
|
|
130
|
+
}),
|
|
131
|
+
);
|
|
132
|
+
const first = startNativeOAuthSignIn(context, { redirectUri: uri });
|
|
133
|
+
for (let i = 0; i < 8; i++) await Promise.resolve();
|
|
134
|
+
expect(await startNativeOAuthSignIn(context, { redirectUri: uri })).toEqual({
|
|
135
|
+
status: 'failed',
|
|
136
|
+
reason: 'already-in-progress',
|
|
137
|
+
});
|
|
138
|
+
cancel({ redirectUrl: null });
|
|
139
|
+
await first;
|
|
57
140
|
});
|
|
@@ -55,42 +55,80 @@ describe('OAuth bearer commit with real HTTP transport', () => {
|
|
|
55
55
|
expect(params.get('redirect_uri')).toBe(REDIRECT);
|
|
56
56
|
expect(params.get('code_verifier')).toBeTruthy();
|
|
57
57
|
exchanges += 1;
|
|
58
|
-
res.end(
|
|
59
|
-
|
|
58
|
+
res.end(
|
|
59
|
+
JSON.stringify({
|
|
60
|
+
access_token: token(exchangeSubject),
|
|
61
|
+
session_id: 'fixture-session',
|
|
62
|
+
expires_in: 300,
|
|
63
|
+
user: {
|
|
64
|
+
id: exchangeSubject,
|
|
65
|
+
username: exchangeSubject === PERSON ? 'fixture-person' : 'fixture-organization',
|
|
66
|
+
},
|
|
67
|
+
}),
|
|
68
|
+
);
|
|
60
69
|
} else if (req.method === 'GET' && req.url === '/users/me') {
|
|
61
70
|
const bearer = req.headers.authorization;
|
|
62
|
-
const subject =
|
|
63
|
-
|
|
64
|
-
|
|
71
|
+
const subject =
|
|
72
|
+
bearer === `Bearer ${token(PERSON)}`
|
|
73
|
+
? PERSON
|
|
74
|
+
: bearer === `Bearer ${token(ORGANIZATION)}`
|
|
75
|
+
? ORGANIZATION
|
|
76
|
+
: null;
|
|
77
|
+
if (!subject) {
|
|
78
|
+
res.statusCode = 401;
|
|
79
|
+
res.end(JSON.stringify({ message: 'Unauthorized' }));
|
|
80
|
+
return;
|
|
81
|
+
}
|
|
65
82
|
profileSubjects.push(subject);
|
|
66
|
-
res.end(
|
|
83
|
+
res.end(
|
|
84
|
+
JSON.stringify({
|
|
85
|
+
id: subject,
|
|
86
|
+
username: subject === PERSON ? 'fixture-person' : 'fixture-organization',
|
|
87
|
+
}),
|
|
88
|
+
);
|
|
67
89
|
} else {
|
|
68
90
|
unexpectedRequests.push(`${req.method} ${req.url}`);
|
|
69
|
-
res.statusCode = 500;
|
|
91
|
+
res.statusCode = 500;
|
|
92
|
+
res.end(JSON.stringify({ message: 'Unexpected fixture request' }));
|
|
70
93
|
}
|
|
71
94
|
});
|
|
72
95
|
await new Promise<void>((resolve) => server.listen(0, '127.0.0.1', resolve));
|
|
73
96
|
const address = server.address();
|
|
74
97
|
if (!address || typeof address === 'string') throw new Error('Owned HTTP listener missing');
|
|
75
|
-
oxy = new OxyServices({
|
|
98
|
+
oxy = new OxyServices({
|
|
99
|
+
baseURL: `http://127.0.0.1:${address.port}`,
|
|
100
|
+
enableCache: false,
|
|
101
|
+
maxRetries: 0,
|
|
102
|
+
});
|
|
76
103
|
oxy.session.setAccessToken(token(PERSON));
|
|
77
104
|
});
|
|
78
105
|
|
|
79
106
|
afterEach(async () => {
|
|
80
107
|
oxy?.dispose();
|
|
81
108
|
server.closeAllConnections();
|
|
82
|
-
await new Promise<void>((resolve, reject) =>
|
|
109
|
+
await new Promise<void>((resolve, reject) =>
|
|
110
|
+
server.close((error) => (error ? reject(error) : resolve())),
|
|
111
|
+
);
|
|
83
112
|
expect(unexpectedRequests).toEqual([]);
|
|
84
113
|
});
|
|
85
114
|
|
|
86
115
|
async function consent() {
|
|
87
|
-
return requestOAuthConsent(
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
oxy
|
|
92
|
-
|
|
93
|
-
|
|
116
|
+
return requestOAuthConsent(
|
|
117
|
+
{
|
|
118
|
+
platform: 'native',
|
|
119
|
+
mode: 'popup',
|
|
120
|
+
oxyServices: oxy,
|
|
121
|
+
clientId: CLIENT,
|
|
122
|
+
identityBound: false,
|
|
123
|
+
expectedUserId: PERSON,
|
|
124
|
+
commitSession: async (session) => {
|
|
125
|
+
if (!session.accessToken) throw new Error('Fixture commit requires bearer');
|
|
126
|
+
oxy.session.setAccessToken(session.accessToken);
|
|
127
|
+
visibleSubject = session.userId;
|
|
128
|
+
},
|
|
129
|
+
},
|
|
130
|
+
{ redirectUri: REDIRECT, scopes: ['user:read'] },
|
|
131
|
+
);
|
|
94
132
|
}
|
|
95
133
|
|
|
96
134
|
it('rejects a different returned subject without replacing the previous bearer', async () => {
|
|
@@ -123,8 +161,12 @@ describe('OAuth bearer commit with real HTTP transport', () => {
|
|
|
123
161
|
});
|
|
124
162
|
|
|
125
163
|
it('preserves legacy direct exchange planting by default', async () => {
|
|
126
|
-
await oxy.auth.oauth.exchangeCode({
|
|
127
|
-
|
|
164
|
+
await oxy.auth.oauth.exchangeCode({
|
|
165
|
+
code: 'owned-code',
|
|
166
|
+
clientId: CLIENT,
|
|
167
|
+
redirectUri: REDIRECT,
|
|
168
|
+
codeVerifier: 'fixture-verifier',
|
|
169
|
+
});
|
|
128
170
|
expect(exchanges).toBe(1);
|
|
129
171
|
expect((await oxy.users.me()).id).toBe(ORGANIZATION);
|
|
130
172
|
});
|
|
@@ -51,10 +51,7 @@ function codeMessage(source: unknown, state = STATE, origin = IDP_ORIGIN) {
|
|
|
51
51
|
async function outcomeOrPending(
|
|
52
52
|
promise: Promise<OAuthPopupOutcome>,
|
|
53
53
|
): Promise<OAuthPopupOutcome | 'pending'> {
|
|
54
|
-
return Promise.race([
|
|
55
|
-
promise,
|
|
56
|
-
Promise.resolve().then(() => 'pending' as const),
|
|
57
|
-
]);
|
|
54
|
+
return Promise.race([promise, Promise.resolve().then(() => 'pending' as const)]);
|
|
58
55
|
}
|
|
59
56
|
|
|
60
57
|
describe('openOAuthPopup', () => {
|
|
@@ -64,9 +61,7 @@ describe('openOAuthPopup', () => {
|
|
|
64
61
|
|
|
65
62
|
it('opens an empty, named window so a second press reuses it', () => {
|
|
66
63
|
const handle = fakePopup();
|
|
67
|
-
const openSpy = jest
|
|
68
|
-
.spyOn(window, 'open')
|
|
69
|
-
.mockReturnValue(handle as unknown as Window);
|
|
64
|
+
const openSpy = jest.spyOn(window, 'open').mockReturnValue(handle as unknown as Window);
|
|
70
65
|
|
|
71
66
|
expect(openOAuthPopup()).toBe(handle);
|
|
72
67
|
expect(openSpy).toHaveBeenCalledWith('', OXY_OAUTH_POPUP_WINDOW_NAME, expect.any(String));
|
|
@@ -19,11 +19,7 @@ function fakePopup(): OAuthPopupHandle {
|
|
|
19
19
|
* `MessageEvent` constructor refuses a non-`Window` `source`, so the event is
|
|
20
20
|
* assembled the way the browser hands it to the listener instead.
|
|
21
21
|
*/
|
|
22
|
-
function makeMessageEvent(init: {
|
|
23
|
-
data: unknown;
|
|
24
|
-
origin: string;
|
|
25
|
-
source: unknown;
|
|
26
|
-
}): MessageEvent {
|
|
22
|
+
function makeMessageEvent(init: { data: unknown; origin: string; source: unknown }): MessageEvent {
|
|
27
23
|
const event = new Event('message');
|
|
28
24
|
Object.assign(event, init);
|
|
29
25
|
return event as MessageEvent;
|
|
@@ -82,9 +78,15 @@ describe('parseOAuthPopupMessage', () => {
|
|
|
82
78
|
['an array', [{ type: OXY_OAUTH_CODE_MESSAGE_TYPE, code: 'c', state: STATE }]],
|
|
83
79
|
['an unknown type', { type: 'oxy:oauth:token', code: 'c', state: STATE }],
|
|
84
80
|
['a code message with no code', { type: OXY_OAUTH_CODE_MESSAGE_TYPE, state: STATE }],
|
|
85
|
-
[
|
|
81
|
+
[
|
|
82
|
+
'a code message with an empty code',
|
|
83
|
+
{ type: OXY_OAUTH_CODE_MESSAGE_TYPE, code: '', state: STATE },
|
|
84
|
+
],
|
|
86
85
|
['a code message with no state', { type: OXY_OAUTH_CODE_MESSAGE_TYPE, code: 'c' }],
|
|
87
|
-
[
|
|
86
|
+
[
|
|
87
|
+
'a code message with a non-string code',
|
|
88
|
+
{ type: OXY_OAUTH_CODE_MESSAGE_TYPE, code: 1, state: STATE },
|
|
89
|
+
],
|
|
88
90
|
['an error message with no error', { type: OXY_OAUTH_ERROR_MESSAGE_TYPE, state: STATE }],
|
|
89
91
|
])('rejects %s', (_label, data) => {
|
|
90
92
|
expect(parseOAuthPopupMessage(data)).toBeNull();
|
|
@@ -15,10 +15,7 @@ jest.mock('../../components/oauthNavigation', () => ({
|
|
|
15
15
|
}));
|
|
16
16
|
|
|
17
17
|
import type { OxyServices } from '@oxy.so/core';
|
|
18
|
-
import {
|
|
19
|
-
OXY_OAUTH_CODE_VERIFIER_STORAGE_KEY,
|
|
20
|
-
OXY_OAUTH_STATE_STORAGE_KEY,
|
|
21
|
-
} from '@oxy.so/core';
|
|
18
|
+
import { OXY_OAUTH_CODE_VERIFIER_STORAGE_KEY, OXY_OAUTH_STATE_STORAGE_KEY } from '@oxy.so/core';
|
|
22
19
|
import { tryCompleteOAuthReturn } from '../../utils/oauthReturn';
|
|
23
20
|
import { startWebOAuthSignIn, type WebOAuthTransportContext } from '../browserAuthTransport';
|
|
24
21
|
import { completeOAuthCode } from '../completeOAuthCode';
|
|
@@ -102,7 +99,9 @@ describe('shared OAuth completion path', () => {
|
|
|
102
99
|
|
|
103
100
|
it('the redirect return leg completes through completeOAuthCode with the persisted handshake', async () => {
|
|
104
101
|
const exchangeOAuthCode = jest.fn();
|
|
105
|
-
const oxyServices = {
|
|
102
|
+
const oxyServices = {
|
|
103
|
+
auth: { oauth: { exchangeCode: exchangeOAuthCode } },
|
|
104
|
+
} as unknown as OxyServices;
|
|
106
105
|
sessionStorage.setItem(OXY_OAUTH_STATE_STORAGE_KEY, 'state-from-storage');
|
|
107
106
|
sessionStorage.setItem(OXY_OAUTH_CODE_VERIFIER_STORAGE_KEY, 'verifier-from-storage');
|
|
108
107
|
window.history.replaceState({}, '', '/feed?code=code-2&state=state-from-storage');
|
|
@@ -3,7 +3,9 @@ import type { OxyServices } from '@oxy.so/core';
|
|
|
3
3
|
|
|
4
4
|
export function classifyApplicationSessionLane(metadata: unknown): 'device' | 'oauth' {
|
|
5
5
|
const application = publicApplicationSchema.parse(metadata);
|
|
6
|
-
return application.type === 'third_party' && !application.isOfficial && !application.isInternal
|
|
6
|
+
return application.type === 'third_party' && !application.isOfficial && !application.isInternal
|
|
7
|
+
? 'oauth'
|
|
8
|
+
: 'device';
|
|
7
9
|
}
|
|
8
10
|
|
|
9
11
|
export const APPLICATION_CLASSIFICATION_DEADLINE_MS = 5000;
|
|
@@ -19,8 +21,15 @@ export async function resolveApplicationSessionLane(
|
|
|
19
21
|
try {
|
|
20
22
|
const metadata = await Promise.race([
|
|
21
23
|
oxyServices.apps.getPublic(clientId, { cache: false }),
|
|
22
|
-
new Promise<never>((_, reject) => {
|
|
24
|
+
new Promise<never>((_, reject) => {
|
|
25
|
+
timer = setTimeout(
|
|
26
|
+
() => reject(new Error('Application classification timed out')),
|
|
27
|
+
APPLICATION_CLASSIFICATION_DEADLINE_MS,
|
|
28
|
+
);
|
|
29
|
+
}),
|
|
23
30
|
]);
|
|
24
31
|
return classifyApplicationSessionLane(metadata);
|
|
25
|
-
} finally {
|
|
32
|
+
} finally {
|
|
33
|
+
if (timer !== undefined) clearTimeout(timer);
|
|
34
|
+
}
|
|
26
35
|
}
|
|
@@ -20,7 +20,12 @@ import { redirectToAuthorize } from '../components/oauthNavigation';
|
|
|
20
20
|
import { isWebBrowser } from '../utils/isWebBrowser';
|
|
21
21
|
import { completeOAuthCode } from './completeOAuthCode';
|
|
22
22
|
import { prepareAuthorizeRequest } from './oauthHandshake';
|
|
23
|
-
import {
|
|
23
|
+
import {
|
|
24
|
+
awaitOAuthPopupResult,
|
|
25
|
+
closeOAuthPopup,
|
|
26
|
+
navigateOAuthPopup,
|
|
27
|
+
openOAuthPopup,
|
|
28
|
+
} from './oauthPopup';
|
|
24
29
|
import type {
|
|
25
30
|
OAuthPopupHandle,
|
|
26
31
|
OAuthSessionCommitInput,
|
|
@@ -97,7 +102,8 @@ export async function startWebOAuthSignIn(
|
|
|
97
102
|
// straight from the click still has gesture attribution. An explicit `null`
|
|
98
103
|
// means the caller already tried and was blocked.
|
|
99
104
|
const mode = options.transport ?? context.mode;
|
|
100
|
-
const popup =
|
|
105
|
+
const popup =
|
|
106
|
+
mode === 'popup' && options.popup === undefined ? openOAuthPopup() : (options.popup ?? null);
|
|
101
107
|
|
|
102
108
|
if (mode === 'redirect') {
|
|
103
109
|
closeOAuthPopup(popup);
|
|
@@ -190,11 +196,13 @@ async function startRedirectSignIn(
|
|
|
190
196
|
...(options.screen ? { screen: options.screen } : {}),
|
|
191
197
|
});
|
|
192
198
|
|
|
193
|
-
if (
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
199
|
+
if (
|
|
200
|
+
!persistOAuthHandshake(
|
|
201
|
+
prepared.handshake.state,
|
|
202
|
+
prepared.handshake.codeVerifier,
|
|
203
|
+
options.redirectUri,
|
|
204
|
+
)
|
|
205
|
+
) {
|
|
198
206
|
return { status: 'failed', reason: 'handshake-storage' };
|
|
199
207
|
}
|
|
200
208
|
|
|
@@ -122,7 +122,11 @@ export function readBridgeMessage(
|
|
|
122
122
|
const data = event.data as Record<string, unknown> | null;
|
|
123
123
|
if (typeof data !== 'object' || data === null) return { kind: 'ignore' };
|
|
124
124
|
if (data.state !== context.expectedState) return { kind: 'ignore' };
|
|
125
|
-
if (
|
|
125
|
+
if (
|
|
126
|
+
data.type === OXY_BRIDGE_CODE_MESSAGE_TYPE &&
|
|
127
|
+
typeof data.code === 'string' &&
|
|
128
|
+
data.code.length > 0
|
|
129
|
+
) {
|
|
126
130
|
return { kind: 'code', code: data.code };
|
|
127
131
|
}
|
|
128
132
|
if (data.type === OXY_BRIDGE_ERROR_MESSAGE_TYPE && typeof data.error === 'string') {
|
|
@@ -153,10 +157,16 @@ export type BrowserBridgeResult =
|
|
|
153
157
|
* Drive an opened bridge window to a device credential for this app. Settles
|
|
154
158
|
* exactly once, closes the window whatever the outcome, and never rejects.
|
|
155
159
|
*/
|
|
156
|
-
export async function runBrowserBridge(
|
|
160
|
+
export async function runBrowserBridge(
|
|
161
|
+
options: RunBrowserBridgeOptions,
|
|
162
|
+
): Promise<BrowserBridgeResult> {
|
|
157
163
|
const { popup, bridgeOrigin, oxyServices, clientId, redirectUri } = options;
|
|
158
164
|
const host = bridgeHost();
|
|
159
|
-
if (
|
|
165
|
+
if (
|
|
166
|
+
!host ||
|
|
167
|
+
typeof host.addEventListener !== 'function' ||
|
|
168
|
+
typeof host.removeEventListener !== 'function'
|
|
169
|
+
) {
|
|
160
170
|
closeBridgeWindow(popup);
|
|
161
171
|
return { ok: false, reason: 'no-browser' };
|
|
162
172
|
}
|
|
@@ -204,7 +214,12 @@ export async function runBrowserBridge(options: RunBrowserBridgeOptions): Promis
|
|
|
204
214
|
|
|
205
215
|
function awaitBridgeMessage(
|
|
206
216
|
host: BridgeHost,
|
|
207
|
-
context: {
|
|
217
|
+
context: {
|
|
218
|
+
popup: OAuthPopupHandle;
|
|
219
|
+
expectedOrigin: string;
|
|
220
|
+
expectedState: string;
|
|
221
|
+
timeoutMs: number;
|
|
222
|
+
},
|
|
208
223
|
): Promise<{ kind: 'code'; code: string } | { kind: 'closed' | 'timed-out' | 'bridge-error' }> {
|
|
209
224
|
return new Promise((resolve) => {
|
|
210
225
|
let settled = false;
|
|
@@ -220,7 +235,9 @@ function awaitBridgeMessage(
|
|
|
220
235
|
// The bridge posts and THEN closes; let an already-queued message win.
|
|
221
236
|
closeGrace = setTimeout(() => settle({ kind: 'closed' }), CLOSE_GRACE_MS);
|
|
222
237
|
}, CLOSE_POLL_INTERVAL_MS);
|
|
223
|
-
function settle(
|
|
238
|
+
function settle(
|
|
239
|
+
outcome: { kind: 'code'; code: string } | { kind: 'closed' | 'timed-out' | 'bridge-error' },
|
|
240
|
+
): void {
|
|
224
241
|
if (settled) return;
|
|
225
242
|
settled = true;
|
|
226
243
|
host.removeEventListener?.('message', onMessage);
|
|
@@ -68,12 +68,15 @@ export async function completeOAuthCode(
|
|
|
68
68
|
}
|
|
69
69
|
|
|
70
70
|
try {
|
|
71
|
-
const result = await input.oxyServices.auth.oauth.exchangeCode(
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
71
|
+
const result = await input.oxyServices.auth.oauth.exchangeCode(
|
|
72
|
+
{
|
|
73
|
+
code: input.code,
|
|
74
|
+
clientId: input.clientId,
|
|
75
|
+
redirectUri: input.redirectUri,
|
|
76
|
+
codeVerifier: input.handshake.codeVerifier,
|
|
77
|
+
},
|
|
78
|
+
{ plantTokens: false },
|
|
79
|
+
);
|
|
77
80
|
runCleanup();
|
|
78
81
|
await input.commitSession({
|
|
79
82
|
sessionId: result.sessionId,
|
|
@@ -12,8 +12,20 @@ export interface StartNativeOAuthSignInOptions {
|
|
|
12
12
|
export type NativeOAuthSignInResult =
|
|
13
13
|
| { status: 'signed-in' }
|
|
14
14
|
| { status: 'cancelled' }
|
|
15
|
-
| {
|
|
16
|
-
|
|
15
|
+
| {
|
|
16
|
+
status: 'unsupported';
|
|
17
|
+
reason: 'unsupported-platform' | 'missing-client-id' | 'identity-bound' | 'not-third-party';
|
|
18
|
+
}
|
|
19
|
+
| {
|
|
20
|
+
status: 'failed';
|
|
21
|
+
reason:
|
|
22
|
+
| 'invalid-redirect-uri'
|
|
23
|
+
| 'client-resolution-failed'
|
|
24
|
+
| 'native-callback-invalid'
|
|
25
|
+
| 'state-mismatch'
|
|
26
|
+
| 'exchange-failed'
|
|
27
|
+
| 'already-in-progress';
|
|
28
|
+
};
|
|
17
29
|
export interface NativeOAuthSignInContext {
|
|
18
30
|
platform: 'native' | 'unsupported';
|
|
19
31
|
oxyServices: OxyServices;
|
|
@@ -28,9 +40,15 @@ function isExactRedirectUri(value: string): boolean {
|
|
|
28
40
|
if (!value || value !== value.trim() || /\s/.test(value)) return false;
|
|
29
41
|
try {
|
|
30
42
|
const uri = new URL(value);
|
|
31
|
-
return
|
|
32
|
-
!
|
|
33
|
-
|
|
43
|
+
return (
|
|
44
|
+
!uri.username &&
|
|
45
|
+
!uri.password &&
|
|
46
|
+
!uri.hash &&
|
|
47
|
+
!['code', 'state', 'error', 'error_description'].some((key) => uri.searchParams.has(key))
|
|
48
|
+
);
|
|
49
|
+
} catch {
|
|
50
|
+
return false;
|
|
51
|
+
}
|
|
34
52
|
}
|
|
35
53
|
|
|
36
54
|
/** SDK owns the in-memory handshake, observed native callback and session commit. */
|
|
@@ -38,30 +56,65 @@ export async function startNativeOAuthSignIn(
|
|
|
38
56
|
context: NativeOAuthSignInContext,
|
|
39
57
|
options: StartNativeOAuthSignInOptions,
|
|
40
58
|
): Promise<NativeOAuthSignInResult> {
|
|
41
|
-
if (context.platform !== 'native')
|
|
59
|
+
if (context.platform !== 'native')
|
|
60
|
+
return { status: 'unsupported', reason: 'unsupported-platform' };
|
|
42
61
|
if (!context.clientId) return { status: 'unsupported', reason: 'missing-client-id' };
|
|
43
62
|
if (context.identityBound) return { status: 'unsupported', reason: 'identity-bound' };
|
|
44
|
-
if (!isExactRedirectUri(options.redirectUri))
|
|
63
|
+
if (!isExactRedirectUri(options.redirectUri))
|
|
64
|
+
return { status: 'failed', reason: 'invalid-redirect-uri' };
|
|
45
65
|
if (attempts.has(context.oxyServices)) return { status: 'failed', reason: 'already-in-progress' };
|
|
46
66
|
attempts.add(context.oxyServices);
|
|
47
67
|
try {
|
|
48
68
|
let lane: 'device' | 'oauth';
|
|
49
|
-
try {
|
|
50
|
-
|
|
69
|
+
try {
|
|
70
|
+
lane = await resolveApplicationSessionLane(context.oxyServices, context.clientId);
|
|
71
|
+
} catch {
|
|
72
|
+
return { status: 'failed', reason: 'client-resolution-failed' };
|
|
73
|
+
}
|
|
51
74
|
if (lane !== 'oauth') return { status: 'unsupported', reason: 'not-third-party' };
|
|
52
|
-
const prepared = await prepareAuthorizeRequest({
|
|
53
|
-
|
|
75
|
+
const prepared = await prepareAuthorizeRequest({
|
|
76
|
+
clientId: context.clientId,
|
|
77
|
+
redirectUri: options.redirectUri,
|
|
78
|
+
authorizeBaseUrl: context.authorizeBaseUrl,
|
|
79
|
+
});
|
|
80
|
+
const { redirectUrl } = await openAuthorizeUrlNative(
|
|
81
|
+
prepared.authorizeUrl,
|
|
82
|
+
options.redirectUri,
|
|
83
|
+
{ allowExternalFallback: false },
|
|
84
|
+
);
|
|
54
85
|
if (!redirectUrl) return { status: 'cancelled' };
|
|
55
86
|
const prefix = `${options.redirectUri}${options.redirectUri.includes('?') ? '&' : '?'}`;
|
|
56
|
-
if (!redirectUrl.startsWith(prefix) || redirectUrl.includes('#'))
|
|
87
|
+
if (!redirectUrl.startsWith(prefix) || redirectUrl.includes('#'))
|
|
88
|
+
return { status: 'failed', reason: 'native-callback-invalid' };
|
|
57
89
|
const parameters = new URLSearchParams(redirectUrl.slice(prefix.length));
|
|
58
|
-
if ([...new URL(options.redirectUri).searchParams.keys()].some((key) => parameters.has(key)))
|
|
59
|
-
|
|
60
|
-
if (
|
|
90
|
+
if ([...new URL(options.redirectUri).searchParams.keys()].some((key) => parameters.has(key)))
|
|
91
|
+
return { status: 'failed', reason: 'native-callback-invalid' };
|
|
92
|
+
if (
|
|
93
|
+
['code', 'state', 'error', 'error_description'].some(
|
|
94
|
+
(key) => parameters.getAll(key).length > 1,
|
|
95
|
+
)
|
|
96
|
+
)
|
|
97
|
+
return { status: 'failed', reason: 'native-callback-invalid' };
|
|
98
|
+
if (parameters.get('state') !== prepared.handshake.state)
|
|
99
|
+
return { status: 'failed', reason: 'state-mismatch' };
|
|
61
100
|
const code = parameters.get('code');
|
|
62
|
-
if (parameters.has('error') || !code)
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
101
|
+
if (parameters.has('error') || !code)
|
|
102
|
+
return { status: 'failed', reason: 'native-callback-invalid' };
|
|
103
|
+
const completion = await completeOAuthCode({
|
|
104
|
+
oxyServices: context.oxyServices,
|
|
105
|
+
clientId: context.clientId,
|
|
106
|
+
code,
|
|
107
|
+
returnedState: parameters.get('state'),
|
|
108
|
+
handshake: prepared.handshake,
|
|
109
|
+
redirectUri: options.redirectUri,
|
|
110
|
+
commitSession: context.commitSession,
|
|
111
|
+
});
|
|
112
|
+
return completion.ok
|
|
113
|
+
? { status: 'signed-in' }
|
|
114
|
+
: { status: 'failed', reason: completion.reason };
|
|
115
|
+
} catch {
|
|
116
|
+
return { status: 'failed', reason: 'exchange-failed' };
|
|
117
|
+
} finally {
|
|
118
|
+
attempts.delete(context.oxyServices);
|
|
119
|
+
}
|
|
67
120
|
}
|