Files
warmbly/internal/app/token/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

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"
)