Update link device provisioning proto.

This commit is contained in:
Cody Henthorne
2025-07-24 13:49:15 -04:00
committed by Michelle Tang
parent 5a1bb0c231
commit 2da3ac5b20
3 changed files with 48 additions and 29 deletions

View File

@@ -117,6 +117,14 @@ object LinkDeviceRepository {
return false
}
if (uri.scheme != "sgnl") {
return false
}
if (uri.host != "linkdevice") {
return false
}
val ephemeralId: String? = uri.getQueryParameter("uuid")
val publicKeyEncoded: String? = uri.getQueryParameter("pub_key")
return ephemeralId.isNotNullOrBlank() && publicKeyEncoded.isNotNullOrBlank()