Skip to content

Commit b8fe479

Browse files
committed
Minor indent refactors
1 parent 8a6a95f commit b8fe479

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

EXAMPLES.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -685,7 +685,7 @@ You can specify an optional user identity identifier and/or a database connectio
685685
val client = MyAccountAPIClient(account, accessToken)
686686

687687
client.passkeyEnrollmentChallenge()
688-
.start(object :Callback<PasskeyEnrollmentChallenge,MyAccountException>{
688+
.start(object: Callback<PasskeyEnrollmentChallenge, MyAccountException> {
689689
override fun onSuccess(result: PasskeyEnrollmentChallenge) {
690690
print("Challenge: ${result.challenge}")
691691
}
@@ -699,13 +699,13 @@ client.passkeyEnrollmentChallenge()
699699

700700
```kotlin
701701

702-
val client = MyAccountAPIClient(account, "accessToken")
702+
val client = MyAccountAPIClient(account, "accessToken")
703703

704-
try{
705-
val challenge = client.passkeyEnrollmentChallenge()
704+
try {
705+
val challenge = client.passkeyEnrollmentChallenge()
706706
.await()
707707
println("Challenge: $challenge")
708-
} catch (exception:MyAccountException){
708+
} catch (exception: MyAccountException) {
709709
print("Error: ${exception.message}")
710710
}
711711
```
@@ -735,7 +735,7 @@ Use the created passkey credential and the enrollment challenge to enroll the pa
735735
```Kotlin
736736

737737
client.enroll(passkeyCredential,challenge)
738-
.start(object :Callback<PasskeyAuthenticationMethod,MyAccountException>{
738+
.start(object: Callback<PasskeyAuthenticationMethod, MyAccountException> {
739739
override fun onSuccess(result: PasskeyAuthenticationMethod) {
740740
println("Passkey enrolled successfully: ${result.id}")
741741
}
@@ -750,11 +750,11 @@ client.enroll(passkeyCredential,challenge)
750750

751751
```kotlin
752752

753-
try{
754-
val result = client.enroll(passkeyCredential,challenge)
753+
try {
754+
val result = client.enroll(passkeyCredential, challenge)
755755
.await()
756756
println("Passkey enrolled successfully: ${result.id}")
757-
}catch(error:MyAccountException){
757+
} catch(error: MyAccountException) {
758758
println("Error enrolling passkey: ${error.message}")
759759
}
760760
```

0 commit comments

Comments
 (0)