# Ionic Apple Sign In

> Add "Sign in with Apple" to an Ionic Capacitor app via @capacitor-community/apple-sign-in. Trigger when adding social login on iOS, integrating Apple ID as a sign-in method, or when App Review requires Sign in with Apple alongside other social logins.

- **Type:** Skill
- **Install:** `agentstack add skill-erkamyaman-ionic-capacitor-skills-ionic-apple-sign-in`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [erkamyaman](https://agentstack.voostack.com/s/erkamyaman)
- **Installs:** 0
- **Category:** [Agent Skills](https://agentstack.voostack.com/c/agent-skills)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [erkamyaman](https://github.com/erkamyaman)
- **Source:** https://github.com/erkamyaman/ionic-capacitor-skills/tree/main/skills/ionic-apple-sign-in
- **Website:** https://www.skills.sh/erkamyaman/ionic-capacitor-skills

## Install

```sh
agentstack add skill-erkamyaman-ionic-capacitor-skills-ionic-apple-sign-in
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# Sign in with Apple

Apple requires apps that offer **any** other social login (Google / Facebook / etc.) on iOS to also offer **Sign in with Apple**. Ship Google sign-in without it and App Review will reject the build.

> **Don't use this skill in a Firebase project.** If your app already uses Firebase Auth, integrate Sign in with Apple via [`@capacitor-firebase/authentication`](../ionic-firebase/references/auth.md#sign-in-with-apple) instead. That plugin uses the same native dialog on iOS and the same Apple OAuth flow on Android, but hands the JWT directly to Firebase Auth so you don't end up running two different identity layers. Installing **both** `@capacitor-community/apple-sign-in` and `@capacitor-firebase/authentication` is wasteful and easy to misconfigure.
>
> Use this skill when:
> - You're not on Firebase (e.g., Supabase — see [`../ionic-supabase/references/auth.md#native-apple-sign-in`](../ionic-supabase/references/auth.md), or your own backend).
> - You verify the Apple JWT yourself on a custom backend.

## When to consult

- **App ID setup + entitlement**: [setup.md](references/setup.md)
- **Sign-in flow + nonce verification**: [sign-in-flow.md](references/sign-in-flow.md)

## Hard rules

- ✅ Required if you offer Google / Facebook / Twitter / OAuth login on iOS.
- ✅ The Apple-issued user identifier is opaque and stable per app — store it as the user's primary key.
- ✅ Apple returns the user's name and email **only on the first sign-in**. If your backend doesn't capture them then, you don't get a second chance unless the user revokes and re-grants in iOS Settings → Apple ID → Sign in with Apple.
- ✅ Generate and verify a **nonce** to prevent replay attacks.
- ❌ Don't store the Apple email as the user identifier — Apple's "Hide My Email" returns a relay address that the user can change.
- ❌ Android side: this plugin uses Apple's web flow (popup) on Android — works, but it's an OAuth web redirect, not a native dialog.

## Library

```bash
npm install @capacitor-community/apple-sign-in
npx cap sync
```

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [erkamyaman](https://github.com/erkamyaman)
- **Source:** [erkamyaman/ionic-capacitor-skills](https://github.com/erkamyaman/ionic-capacitor-skills)
- **License:** MIT
- **Homepage:** https://www.skills.sh/erkamyaman/ionic-capacitor-skills

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-erkamyaman-ionic-capacitor-skills-ionic-apple-sign-in
- Seller: https://agentstack.voostack.com/s/erkamyaman
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
