mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-27 11:46:58 +02:00
Implement login with scanned QR code flows
This commit is contained in:
committed by
Stefan Ceriu
parent
bbd3470659
commit
fa3866ea76
+6
-8
@@ -52,14 +52,12 @@ class MockQRLoginService: QRLoginServiceProtocol {
|
||||
}
|
||||
|
||||
func generateQRCode() async throws -> QRLoginCode {
|
||||
let transport = QRLoginRendezvousTransportDetails(type: "http.v1",
|
||||
uri: "https://matrix.org")
|
||||
let rendezvous = QRLoginRendezvous(transport: transport,
|
||||
algorithm: "m.rendezvous.v1.curve25519-aes-sha256",
|
||||
key: "")
|
||||
return QRLoginCode(user: "@mock:matrix.org",
|
||||
initiator: .new,
|
||||
rendezvous: rendezvous)
|
||||
let details = RendezvousDetails(algorithm: "m.rendezvous.v1.curve25519-aes-sha256",
|
||||
transport: .init(type: "http.v1",
|
||||
uri: "https://matrix.org"),
|
||||
key: "some.public.key")
|
||||
return QRLoginCode(rendezvous: details,
|
||||
intent: "login.start")
|
||||
}
|
||||
|
||||
func scannerView() -> AnyView {
|
||||
|
||||
Reference in New Issue
Block a user