{"id":31433421,"url":"https://github.com/cap-go/capacitor-persistent-account","last_synced_at":"2026-03-16T08:14:38.161Z","repository":{"id":309795501,"uuid":"1036119602","full_name":"Cap-go/capacitor-persistent-account","owner":"Cap-go","description":"Capacitor plugin to persist account data between app install","archived":false,"fork":false,"pushed_at":"2025-08-25T03:49:13.000Z","size":450,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-08-30T12:26:54.289Z","etag":null,"topics":["account","capacitor","ionic","plugin"],"latest_commit_sha":null,"homepage":"http://capgo.app","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Cap-go.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":"Cap-go","patreon":null,"open_collective":"capgo","ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null}},"created_at":"2025-08-11T15:29:58.000Z","updated_at":"2025-08-19T14:51:35.000Z","dependencies_parsed_at":null,"dependency_job_id":"86a161a8-0299-4f32-b289-e2547bb51b95","html_url":"https://github.com/Cap-go/capacitor-persistent-account","commit_stats":null,"previous_names":["cap-go/capacitor-persistent-account"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/Cap-go/capacitor-persistent-account","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cap-go%2Fcapacitor-persistent-account","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cap-go%2Fcapacitor-persistent-account/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cap-go%2Fcapacitor-persistent-account/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cap-go%2Fcapacitor-persistent-account/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Cap-go","download_url":"https://codeload.github.com/Cap-go/capacitor-persistent-account/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cap-go%2Fcapacitor-persistent-account/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":277675015,"owners_count":25857715,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-30T02:00:09.208Z","response_time":75,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["account","capacitor","ionic","plugin"],"created_at":"2025-09-30T11:14:35.347Z","updated_at":"2026-02-06T07:15:27.849Z","avatar_url":"https://github.com/Cap-go.png","language":"Java","funding_links":["https://github.com/sponsors/Cap-go","https://opencollective.com/capgo"],"categories":[],"sub_categories":[],"readme":"# @capgo/capacitor-persistent-account\n\nThis plugin allows you to securely store account information for a user in Capacitor, and keep it between reinstall\n\n## Documentation\n\nThe most complete doc is available here: https://capgo.app/docs/plugins/persistent-account/\n\n## Compatibility\n\n| Plugin version | Capacitor compatibility | Maintained |\n| -------------- | ----------------------- | ---------- |\n| v8.\\*.\\*       | v8.\\*.\\*                | ✅          |\n| v7.\\*.\\*       | v7.\\*.\\*                | On demand   |\n| v6.\\*.\\*       | v6.\\*.\\*                | ❌          |\n| v5.\\*.\\*       | v5.\\*.\\*                | ❌          |\n\n\u003e **Note:** The major version of this plugin follows the major version of Capacitor. Use the version that matches your Capacitor installation (e.g., plugin v8 for Capacitor 8). Only the latest major version is actively maintained.\n\n## Install\n\n```bash\nnpm install @capgo/capacitor-persistent-account\nnpx cap sync\n```\n\n## API\n\n\u003cdocgen-index\u003e\n\n* [`readAccount()`](#readaccount)\n* [`saveAccount(...)`](#saveaccount)\n* [`getPluginVersion()`](#getpluginversion)\n\n\u003c/docgen-index\u003e\n\n\u003cdocgen-api\u003e\n\u003c!--Update the source file JSDoc comments and rerun docgen to update the docs below--\u003e\n\nCapacitor Persistent Account Plugin\n\nProvides persistent storage for account data across app sessions using platform-specific\nsecure storage mechanisms. On iOS, this uses the Keychain. On Android, this uses\nAccountManager. This ensures account data persists even after app reinstallation.\n\n### readAccount()\n\n```typescript\nreadAccount() =\u003e Promise\u003c{ data: unknown | null; }\u003e\n```\n\nReads the stored account data from persistent storage.\n\nRetrieves account data that was previously saved using saveAccount(). The data\npersists across app sessions and survives app reinstallation on supported platforms.\n\n**Returns:** \u003ccode\u003ePromise\u0026lt;{ data: unknown; }\u0026gt;\u003c/code\u003e\n\n--------------------\n\n\n### saveAccount(...)\n\n```typescript\nsaveAccount(options: { data: unknown; }) =\u003e Promise\u003cvoid\u003e\n```\n\nSaves account data to persistent storage.\n\nStores the provided account data using platform-specific secure storage mechanisms.\nThe data will persist across app sessions and survive app reinstallation.\nAny existing account data will be overwritten.\n\n| Param         | Type                            | Description                                       |\n| ------------- | ------------------------------- | ------------------------------------------------- |\n| **`options`** | \u003ccode\u003e{ data: unknown; }\u003c/code\u003e | - The options object containing the data to save. |\n\n--------------------\n\n\n### getPluginVersion()\n\n```typescript\ngetPluginVersion() =\u003e Promise\u003c{ version: string; }\u003e\n```\n\nGet the native Capacitor plugin version\n\nReturns the version string of the native plugin implementation. Useful for\ndebugging and ensuring compatibility between the JavaScript and native layers.\n\n**Returns:** \u003ccode\u003ePromise\u0026lt;{ version: string; }\u0026gt;\u003c/code\u003e\n\n--------------------\n\n\u003c/docgen-api\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcap-go%2Fcapacitor-persistent-account","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcap-go%2Fcapacitor-persistent-account","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcap-go%2Fcapacitor-persistent-account/lists"}