fix: fail early if webauthn session invalid

This commit is contained in:
Elias Schneider
2026-07-28 00:42:41 +02:00
parent ca28ddcb04
commit 968f97fa61
3 changed files with 100 additions and 18 deletions
+7
View File
@@ -124,6 +124,13 @@ type MissingSessionIdError struct{}
func (e MissingSessionIdError) Error() string { return "Missing session id" }
func (e MissingSessionIdError) HttpStatusCode() int { return http.StatusBadRequest }
type InvalidWebauthnSessionError struct{}
func (e InvalidWebauthnSessionError) Error() string {
return "WebAuthn session is invalid or has expired"
}
func (e InvalidWebauthnSessionError) HttpStatusCode() int { return http.StatusBadRequest }
type ReservedClaimError struct {
Key string
}