Skip to content

Commit c7f4e21

Browse files
committed
fix(expo): add appleSignIn option to config plugin to allow opting out of Apple Sign In entitlement
1 parent ce67184 commit c7f4e21

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

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
@@ -613,8 +613,11 @@ const withClerkAppleSignIn = config => {
613613
};
614614

615615
const withClerkExpo = (config, props = {}) => {
616+
const { appleSignIn = true } = props;
616617
config = withClerkIOS(config);
617-
config = withClerkAppleSignIn(config);
618+
if (appleSignIn !== false) {
619+
config = withClerkAppleSignIn(config);
620+
}
618621
config = withClerkGoogleSignIn(config);
619622
config = withClerkAndroid(config);
620623
config = withClerkKeychainService(config, props);

0 commit comments

Comments
 (0)