Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion Sources/RxAuthSwiftUI/RxSignInView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -744,7 +744,13 @@ public struct RxSignInView<Header: View>: View {

private func submitPasskeyAction() {
guard let schema = currentSchema else { return }
guard validate(schema, requirePassword: false) else { return }

// For passkey sign-in, skip validation - the passkey identifies the user.
// For sign-up, we still need to validate user info fields.
if mode == .signUp {
guard validate(schema, requirePassword: false) else { return }
}

let identifier = primaryIdentifier(schema)
let name = value(forKey: "name")

Expand Down