Skip to content

enablePersistentCredentialStore

enablePersistentCredentialStore(): Promise<void>

Defined in: src/auth.ts:96

Swaps the in-memory credential store for a persistent one backed by the platform secure storage (iOS Keychain / Android EncryptedSharedPreferences). After this call any credential added to the store — via setTokenCredential, signInWithOAuth, setAppCredential, or the automatic challenge-handler — will survive app restarts.

Call once on app start, before any secured resource is loaded. Awaiting it ensures the swap is complete before the SDK attempts to make any authenticated request.

Registered on the geometry module (not the main module) to stay within the Android JVM 64 KB method-size limit.

Promise<void>