Skip to content

Commit f89d279

Browse files
authored
docs(sdk): identifier is actually required (#2593)
1 parent aa6eb13 commit f89d279

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

selfservice/strategy/webauthn/login.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -170,9 +170,9 @@ func (s *Strategy) handleLoginError(r *http.Request, f *login.Flow, err error) e
170170
//
171171
// swagger:model submitSelfServiceLoginFlowWithWebAuthnMethodBody
172172
type submitSelfServiceLoginFlowWithWebAuthnMethodBody struct {
173-
// Identifier is the email or username of the user trying to log in. This field is
174-
// only required when using WebAuthn for passwordless login. When using WebAuthn
175-
// for multi-factor authentication, it is not needed.
173+
// Identifier is the email or username of the user trying to log in.
174+
//
175+
// required: true
176176
Identifier string `json:"identifier"`
177177

178178
// Method should be set to "webAuthn" when logging in using the WebAuthn strategy.

0 commit comments

Comments
 (0)