Skip to content

Commit

Permalink
Added more print statements
Browse files Browse the repository at this point in the history
  • Loading branch information
abedelaziz-deriv committed Jul 9, 2024
1 parent bc93576 commit 71815bb
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -59,15 +59,20 @@ class DerivPasskeysPlugin: FlutterPlugin, MethodCallHandler, ActivityAware, View
)
viewModelScope.launch {
try {
println("Started")
val credentialManager = CredentialManager.create(activity)
println("Credential Manager called with request: ${listOf(getPublicKeyCredentialOption)}")
val result = credentialManager.getCredential(
context = activity,
request = GetCredentialRequest(listOf(getPublicKeyCredentialOption)),
)
println("Credential Manager results: $result")
val credential = result.credential as PublicKeyCredential
println("Credential json: ${credential.authenticationResponseJson}")
println("Credential: $credential")
callback(credential.authenticationResponseJson, null)
} catch (e: Exception) {
System.out.println("getCredential exception -> $e -> ${e.message}" )
println("getCredential exception -> $e -> ${e.message}" )
callback(null, e)
}
}
Expand Down

0 comments on commit 71815bb

Please sign in to comment.