Passkey support for login. Maybe
Can only see once full swap to new systems
This commit is contained in:
parent
2c2f7deb9a
commit
a73519f5f8
3 changed files with 157 additions and 3 deletions
|
@ -1,9 +1,21 @@
|
|||
// 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)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue