PasskeyResult

sealed class PasskeyResult<out T>

Represents the result of a passkey operation.

This sealed class provides a type-safe way to handle the different outcomes of passkey registration and authentication operations.

Parameters

T

The type of data returned on success

Inheritors

Types

Link copied to clipboard

Operation was cancelled by the user.

Link copied to clipboard
data class Error(val exception: PasskeyException) : PasskeyResult<Nothing>

Operation failed with an error.

Link copied to clipboard
data class Success<T>(val data: T) : PasskeyResult<T>

Successful operation result.