linstrom/auth-new/auth.go
mStar a73519f5f8
Passkey support for login. Maybe
Can only see once full swap to new systems
2025-03-29 17:51:12 +01:00

21 lines
542 B
Go

// Package auth is responsible for everything authentication
//
// Be that checking login data and handing out an access token on sucess,
// checking if a given access token can do the requested action
// or adding or updating the authentication information of an account.
// And I probably forgot something
package auth
import (
"time"
"github.com/go-webauthn/webauthn/webauthn"
)
type Authenticator struct {
webauthn *webauthn.WebAuthn
}
func calcAccessExpirationTimestamp() time.Time {
return time.Now().Add(time.Hour * 24 * 30)
}