Skip to content

withClerkAppleSignIn adds entitlement unconditionally — no opt-out #8050

@davidtiede

Description

@davidtiede

Bug report

Description

The withClerkAppleSignIn config plugin unconditionally adds the com.apple.developer.applesignin entitlement to the iOS entitlements plist. There's no way to disable this behavior.

This is a problem for apps that don't use Sign in with Apple — the entitlement requires a paid organization Apple Developer account and fails on personal developer accounts.

Expected behavior

The plugin should accept an option to disable Apple Sign In, e.g.:

["@clerk/expo", { appleSignIn: false }]

Workaround

We have a custom config plugin that removes the entitlement after Clerk adds it:

const { withEntitlementsPlist } = require('@expo/config-plugins');

const withRemoveAppleSignIn = (config) => {
  return withEntitlementsPlist(config, (modConfig) => {
    if (modConfig.modResults['com.apple.developer.applesignin']) {
      delete modConfig.modResults['com.apple.developer.applesignin'];
    }
    return modConfig;
  });
};

module.exports = withRemoveAppleSignIn;

Environment

  • @clerk/expo: 3.1.2
  • Expo SDK 55

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions