Skip to content

Commit bb4b472

Browse files
committed
fix: move utility function to own file
1 parent 056b525 commit bb4b472

2 files changed

Lines changed: 8 additions & 7 deletions

File tree

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
package io.yubicolabs.wwwwallet.credentials
2+
3+
fun getClientOptions(
4+
type: String,
5+
challenge: String,
6+
origin: String,
7+
) = "{\"type\":\"$type\",\"challenge\":\"$challenge\",\"origin\":\"https://$origin\"}"
8+
.toByteArray()

wrapper/src/main/java/io/yubicolabs/wwwwallet/credentials/YubicoContainer.kt

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -501,10 +501,3 @@ private val JSONObject.rp: JSONObject?
501501

502502
private val JSONObject.id: String?
503503
get() = getOrNull("id")
504-
505-
fun getClientOptions(
506-
type: String,
507-
challenge: String,
508-
origin: String,
509-
) = "{\"type\":\"$type\",\"challenge\":\"$challenge\",\"origin\":\"https://$origin\"}"
510-
.toByteArray()

0 commit comments

Comments
 (0)