Files
warmbly/internal/app/passkey/config.go
T
Matthew Meszaros 87f9bf58b0 feat: add Safari-ready passkey login
Add passkey enrollment and login wiring, including a Safari-safe explicit login path that prefetches the WebAuthn challenge before the click and calls the credential ceremony immediately from the user gesture.
2026-06-01 03:09:17 +02:00

13 lines
313 B
Go

package passkey
import "time"
const (
// CeremonyTTL bounds how long a begin→finish round trip may take before
// the stored challenge expires (and is consumed single-use on finish).
CeremonyTTL = 5 * time.Minute
// MaxPasskeyName caps a passkey's friendly name length (in runes).
MaxPasskeyName = 60
)