mirror of
https://github.com/warmbly/warmbly.git
synced 2026-09-06 08:01:24 +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.
16 lines
335 B
Go
16 lines
335 B
Go
package token
|
|
|
|
import "time"
|
|
|
|
const (
|
|
SessionTTL = 12 * time.Hour
|
|
RefreshTokenTTL = 12 * time.Hour
|
|
AccessTokenLifeTime = 12 * time.Hour
|
|
RefreshTokenLifeTime = 180 * 24 * time.Hour
|
|
|
|
AuthProviderEmail = "email"
|
|
AuthProviderApple = "apple"
|
|
AuthProviderGoogle = "google"
|
|
AuthProviderWebAuthn = "webauthn"
|
|
)
|