Skip to content

Commit d27d42e

Browse files
authored
fix(expo): add appleSignIn option to config plugin to allow opting out (#8113)
1 parent 96222fb commit d27d42e

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@clerk/expo': patch
3+
---
4+
5+
Add `appleSignIn` option to the Expo config plugin. Setting `appleSignIn: false` prevents the Sign in with Apple entitlement from being added unconditionally, allowing apps that do not use Apple Sign In to opt out.

packages/expo/app.plugin.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -586,8 +586,11 @@ const withClerkAppleSignIn = config => {
586586
};
587587

588588
const withClerkExpo = (config, props = {}) => {
589+
const { appleSignIn = true } = props;
589590
config = withClerkIOS(config);
590-
config = withClerkAppleSignIn(config);
591+
if (appleSignIn !== false) {
592+
config = withClerkAppleSignIn(config);
593+
}
591594
config = withClerkGoogleSignIn(config);
592595
config = withClerkAndroid(config);
593596
config = withClerkKeychainService(config, props);

0 commit comments

Comments
 (0)