More work on auth system

This commit is contained in:
Melody Becker 2025-03-31 08:07:16 +02:00
parent 2afb14c4b3
commit 7d385e48de
Signed by: mstar
SSH key fingerprint: SHA256:vkXfS9FG2pVNVfvDrzd1VW9n8VJzqqdKQGljxxX8uK8
4 changed files with 37 additions and 5 deletions

View file

@ -17,5 +17,7 @@ type Authenticator struct {
}
func calcAccessExpirationTimestamp() time.Time {
// For now, the default expiration is one month after creation
// though "never" might also be a good option
return time.Now().Add(time.Hour * 24 * 30)
}