Skip to content

Commit

Permalink
add email text field
Browse files Browse the repository at this point in the history
  • Loading branch information
AyushBherwani1998 committed Jan 20, 2025
1 parent 15d651a commit db801b4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,10 @@ import UIKit
}


func loginWithJWT() {
func loginWithJWT(verifierId: String) {
Task {
do {
let verifierId = "testiosEmail11mfa11-1"
let verifierId = verifierId
let verifier = "torus-test-health"
let clientId = "torus-test-health"
let email = verifierId
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import SwiftUI

struct LoginView: View {
@StateObject var viewModel: MainViewModel
@State private var email: String = ""

var body: some View {
VStack(spacing: 16) {
Expand All @@ -24,9 +25,13 @@ struct LoginView: View {
Text("Sign in with Google")
}
).buttonStyle(.bordered)
TextField(
"Enter your email",
text: $email
).textFieldStyle(.roundedBorder).padding()
Button(
action: {
viewModel.loginWithJWT()
viewModel.loginWithJWT(verifierId: email)
},
label: {
Text("Sign in with Mock")
Expand Down

0 comments on commit db801b4

Please sign in to comment.