@@ -40,7 +40,8 @@ import javax.inject.Inject
40
40
* ViewModel for user passkey and password registration. Uses [AuthRepository] to interact with the
41
41
* authentication backend
42
42
*
43
- * @param repository The authentication repository.
43
+ * @param authRepository The authentication repository.
44
+ * @param application The application.
44
45
*/
45
46
@HiltViewModel
46
47
class PasskeyManagementViewModel @Inject constructor(
@@ -122,9 +123,7 @@ class PasskeyManagementViewModel @Inject constructor(
122
123
/* *
123
124
* Creates a passkey. This is similar to the function in [CreatePasskeyViewModel].
124
125
*
125
- * @param onSuccess Callback to be invoked when the passkey creation is successful.
126
126
* @param createPasskey Reference to [CredentialManagerUtils.createPasskey]
127
- * The boolean parameter indicates whether the user should be navigated to the home screen.
128
127
*/
129
128
fun createPasskey (
130
129
createPasskey : suspend (JSONObject ) -> GenericCredentialManagerResponse ,
@@ -175,7 +174,7 @@ class PasskeyManagementViewModel @Inject constructor(
175
174
)
176
175
}
177
176
}
178
- } catch (e: Exception ) {
177
+ } catch (e: Exception ) {
179
178
_uiState .update {
180
179
it.copy(
181
180
isLoading = false ,
@@ -239,7 +238,6 @@ class PasskeyManagementViewModel @Inject constructor(
239
238
* @param passkeysList A list of passkeys for the user returned from the server.
240
239
* @param messageResourceId The resource ID of a message to display to the user.
241
240
* @param errorMessage An error message returned from the server.
242
- * deletion.
243
241
*/
244
242
data class PasskeyManagementUiState (
245
243
val aaguidData : Map <String , Map <String , String >> = emptyMap(),
0 commit comments