Ionic enterprise sdk migration

From capawesome-team/skills · View interactive version

Ionic enterprise sdk migration is an AI agent skill from the GitHub repository capawesome-team/skills. Guides the agent through migrating Capacitor apps from discontinued Ionic Enterprise SDK plugins (Auth Connect, Identity Vault, Secure Storage) to their Capawesome alternatives (OAuth, Vault, Biometrics, Secure Preferences, SQLite). Covers dependency detection, side-by-side API mapping, code replace

How to use this skill

Skill file

Ionic Enterprise SDK Migration

Migrate Capacitor apps from discontinued Ionic Enterprise SDK plugins to Capawesome alternatives.

Plugin Mapping

| Ionic Enterprise Plugin | Package | Capawesome Replacement | Package(s) |

| ----------------------- | ------- | ---------------------- | ---------- |

| Auth Connect | @ionic-enterprise/auth | OAuth | @capawesome-team/capacitor-oauth |

| Identity Vault | @ionic-enterprise/identity-vault | Vault (+ Biometrics) | @capawesome-team/capacitor-vault (+ @capawesome-team/capacitor-biometrics) |

| Secure Storage (key-value) | @ionic-enterprise/secure-storage | Secure Preferences | @capawesome-team/capacitor-secure-preferences |

| Secure Storage (SQLite) | @ionic-enterprise/secure-storage | SQLite | @capawesome-team/capacitor-sqlite |

All Capawesome replacement plugins require a Capawesome Insiders license.

Prerequisites

  1. Capacitor 6, 7, or 8 app.
  2. Node.js and npm installed.
  3. A Capawesome Insiders license key.

Agent Behavior

MCP Server

The Capawesome MCP server serves the current Capawesome documentation, so it is always ahead of the guidance bundled with this skill.

claude mcp add --transport http capawesome "https://mcp.capawesome.io/mcp"

The documentation tools need no account and no token. See the capawesome-mcp skill for full setup, including the Capawesome Cloud tools.

Procedures

Step 1: Detect Ionic Enterprise Dependencies

Read package.json and check for these packages:

If none are found, inform the user that no Ionic Enterprise plugins were detected.

If multiple are found, list them and ask the user which to migrate first, or migrate all sequentially.

Step 2: Set Up the Capawesome npm Registry

Check if the @capawesome-team npm registry is already configured:

npm config get @capawesome-team:registry

If not configured, guide the user through setup:

npm config set @capawesome-team:registry https://npm.registry.capawesome.io
npm config set //npm.registry.capawesome.io/:_authToken <YOUR_LICENSE_KEY>

Ask the user for their license key if needed. Wait for confirmation before continuing.

Step 3: Migrate Each Plugin

For each detected Ionic Enterprise plugin, read the corresponding reference file and follow the migration steps:

Each reference file contains:

  1. Feature mapping table (Ionic API → Capawesome API)
  2. Key differences to be aware of
  3. Step-by-step code replacement with before/after examples

For plugin installation and platform-specific configuration (Android permissions, iOS plist entries, Proguard rules, etc.), use the capacitor-plugins skill.

Step 4: Search for Remaining Ionic Enterprise Imports

After completing all migrations, search the codebase for any remaining Ionic Enterprise imports:

grep -r "@ionic-enterprise" --include="*.ts" --include="*.tsx" --include="*.js" --include="*.jsx"

If any are found, replace them with the corresponding Capawesome imports.

Step 5: Clean Up and Verify

  1. Remove all Ionic Enterprise packages from package.json:
npm uninstall @ionic-enterprise/auth @ionic-enterprise/identity-vault @ionic-enterprise/secure-storage

Only uninstall packages that were actually installed.

Identity Vault exception (preserve-data strategy): If the user chose to preserve existing data, do not uninstall @ionic-enterprise/identity-vault here. It can only export the old data while both plugins are installed, so it stays until the runtime data migration has shipped and run on devices, then is removed in a later release (see steps 2 and 9 in references/identity-vault-migration.md). For a hard cutover, Identity Vault was already uninstalled during its migration.

  1. Sync the project:
npx cap sync
  1. Verify the project builds successfully on all platforms.

Error Handling

Related Skills

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.