diff --git a/ios/Podfile.lock b/ios/Podfile.lock index e6b1477b36c5..7f21485e3958 100644 --- a/ios/Podfile.lock +++ b/ios/Podfile.lock @@ -3437,7 +3437,7 @@ PODS: - ReactCommon/turbomodule/core - SocketRocket - Yoga - - RNAppleAuthentication (2.2.2): + - RNAppleAuthentication (2.5.0): - React-Core - RNCClipboard (1.15.0): - boost @@ -4796,7 +4796,7 @@ SPEC CHECKSUMS: ReactCodegen: 2cfa890e84ecf7f3a708f1ed9c0f2c0b22a23c9a ReactCommon: e9ab32f1d1482d207867b4fdd139361302b9dcc6 ReactNativeHybridApp: 16ebccf5382436fcb9303ab5f4b50d9942bccf5c - RNAppleAuthentication: 4272012a6745519a2411889894eb69a3f553c9f9 + RNAppleAuthentication: 9027af8aa92b4719ef1b6030a8e954d37079473a RNCClipboard: e7da00b1612a8faf2309c6636043713cfe11092e RNCPicker: eb89e9d8bbd728bc00c48d294553f5968900f874 RNDeviceInfo: f4e8dcaba08a5d3a703d30ad41e964e21148d7e2 diff --git a/package-lock.json b/package-lock.json index 8450fab5b76d..dd028a8c0127 100644 --- a/package-lock.json +++ b/package-lock.json @@ -30,7 +30,7 @@ "@fullstory/browser": "^2.0.6", "@fullstory/react-native": "^1.7.8", "@gorhom/portal": "^1.0.14", - "@invertase/react-native-apple-authentication": "^2.2.2", + "@invertase/react-native-apple-authentication": "^2.5.0", "@noble/ed25519": "^3.0.0", "@noble/hashes": "^2.0.0", "@onfido/react-native-sdk": "15.1.0", @@ -8929,8 +8929,13 @@ } }, "node_modules/@invertase/react-native-apple-authentication": { - "version": "2.2.2", - "license": "Apache-2.0" + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/@invertase/react-native-apple-authentication/-/react-native-apple-authentication-2.5.0.tgz", + "integrity": "sha512-PL5tUd1WCw365L2fWlkB4HXy7QjZHCU9o6qi8osMvftBIlynSpi76YStJCeJcwU6aYXB09+iV/V5g+8lwafNwQ==", + "license": "Apache-2.0", + "engines": { + "node": ">=14" + } }, "node_modules/@isaacs/balanced-match": { "version": "4.0.1", diff --git a/package.json b/package.json index 298eea3bdbc8..058767b1ff6e 100644 --- a/package.json +++ b/package.json @@ -97,7 +97,7 @@ "@fullstory/browser": "^2.0.6", "@fullstory/react-native": "^1.7.8", "@gorhom/portal": "^1.0.14", - "@invertase/react-native-apple-authentication": "^2.2.2", + "@invertase/react-native-apple-authentication": "^2.5.0", "@noble/ed25519": "^3.0.0", "@noble/hashes": "^2.0.0", "@onfido/react-native-sdk": "15.1.0", diff --git a/src/components/SignInButtons/AppleSignIn/index.android.tsx b/src/components/SignInButtons/AppleSignIn/index.android.tsx index 441ed3d887c5..5a3cb9ce3ef4 100644 --- a/src/components/SignInButtons/AppleSignIn/index.android.tsx +++ b/src/components/SignInButtons/AppleSignIn/index.android.tsx @@ -1,4 +1,5 @@ import {appleAuthAndroid} from '@invertase/react-native-apple-authentication'; +import type {AndroidConfig} from '@invertase/react-native-apple-authentication'; import React from 'react'; import IconButton from '@components/SignInButtons/IconButton'; import useOnyx from '@hooks/useOnyx'; @@ -12,11 +13,12 @@ import type {AppleSignInProps} from '.'; /** * Apple Sign In Configuration for Android. */ -const config = { +const config: AndroidConfig = { clientId: CONFIG.APPLE_SIGN_IN.SERVICE_ID, redirectUri: CONFIG.APPLE_SIGN_IN.REDIRECT_URI, responseType: appleAuthAndroid.ResponseType.ALL, scope: appleAuthAndroid.Scope.ALL, + fullScreen: false, }; /**