RestoreCredentials

The main entry point for Google Play Restore Credentials operations.

Access via Clerk.restoreCredentials. Restore credentials use Android Credential Manager to create a system-managed restore key for the current user and silently redeem that key after the app is transferred to a new Android device.

Functions

Link copied to clipboard

Deletes the app's restore credential from this device and its cloud backup.

Link copied to clipboard
suspend fun create(isCloudBackupEnabled: Boolean = true): ClerkResult<Unit, ClerkErrorResponse>

Creates a restore credential for the current signed-in user.

Link copied to clipboard

Creates a restore credential for the current signed-in user unless this device already holds one for them.

Link copied to clipboard

Silently signs in with a restore credential transferred by Android device setup.

Link copied to clipboard

Signs in with the restore credential the way signIn does, but only on the first launch after the app is installed or restored onto a device, and without emitting com.clerk.api.auth.AuthEvent.Error when it fails.