mirror of
https://github.com/warmbly/warmbly.git
synced 2026-09-09 08:03:38 +00:00
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.
13 lines
313 B
Go
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
|
|
)
|