> For the complete documentation index, see [llms.txt](https://rehanabbas.gitbook.io/adpluginx/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://rehanabbas.gitbook.io/adpluginx/apple-signin-and-in-app-purchase/enable-apple-signin-and-use.md).

# Enable Apple SignIn And Use

## Open Project in Xcode

And in Build & signin Enable SignIn with Apple Option from capability&#x20;

## Now Use Predefine SignIn Button

{% code lineNumbers="true" %}

```dart
AppleAuthButton(
   onAuthCompleted: (user) {
    // Authentication Completed and Set to Server.
   },
   onAuthFailed: (message) {
   // Authentication Failed With Message.
  },
);
```

{% endcode %}
