Getting Started
설치 단계와 이 플러그인의 전체 마크다운 가이드를 포함한 설정 지시를 복사하세요.
Set up this Capacitor plugin in the project.
Use the package manager already used by the project.
Install these package(s): `@capgo/capacitor-persistent-account`
Run the required Capacitor sync/update step after installation.
Read this markdown guide for the full setup steps: https://raw.githubusercontent.com/Cap-go/website/refs/heads/main/apps/docs/src/content/docs/docs/plugins/persistent-account/getting-started.mdx
Use that guide for platform-specific steps, native file edits, permissions, config changes, imports, and usage setup.
If that guide references other docs pages, read them too.
설치
설치bun add @capgo/capacitor-persistent-accountbunx cap sync수입
수입import { CapacitorPersistentAccount } from '@capgo/capacitor-persistent-account';API 개요
API 개요readAccount
__CAPGO_KEEP_1____CAPGO_KEEP_1__를 사용하여 저장된 계정 데이터를 영구 저장소에서 읽습니다.
앱 세션을 넘어설 때도 데이터가 유지되고, 지원되는 플랫폼에서 앱을 재설치해도 데이터가 살아남습니다.
import { CapacitorPersistentAccount } from '@capgo/capacitor-persistent-account';
const result = await CapacitorPersistentAccount.readAccount();if (result.data) { console.log('Account data:', result.data);} else { console.log('No account data found');}saveAccount
"saveAccount" 섹션계정 데이터를 영구 저장소에 저장합니다.
플랫폼에 특정한 보안 저장 메커니즘을 사용하여 제공된 계정 데이터를 저장합니다. 앱 세션을 넘어 가며 앱 재설치에도 데이터가 유지됩니다. 이미 존재하는 계정 데이터는 덮어씌워집니다.
import { CapacitorPersistentAccount } from '@capgo/capacitor-persistent-account';
await CapacitorPersistentAccount.saveAccount({ data: { userId: '12345', username: 'john.doe', email: 'john@example.com' }});진실의 근원
"Source Of Truth" 섹션이 페이지는 플러그인의 src/definitions.ts. upstream에서 API가 변경될 때마다 pubic을 다시 동기화하세요.
Getting Started에서 계속
"Keep going from Getting Started" 섹션이미 사용 중이라면 시작하기 API 대시보드를 계획하고 API 작업을 연결하는 방법입니다. @capgo/capacitor-persistent-account를 사용하여 @capgo/capacitor-persistent-account를 사용하는 native 기능에 대해 API 개요 API 개요의 구현 세부 정보에 대해 소개 소개의 구현 세부 정보에 대해 API 키 API 키의 구현 세부 정보와 장치 장치의 구현 세부 정보.