Reorganize project structure and fix SQLite usage

This commit is contained in:
bronku 2025-03-23 10:45:42 +01:00
parent 0e762841a3
commit e2dda0ade7
20 changed files with 76 additions and 46 deletions

View file

@ -1,19 +0,0 @@
package auth
import (
"crypto/rand"
"encoding/base64"
"time"
)
type token struct {
userName string
created time.Time
lastAccess time.Time
}
func generateKey() string {
key := [32]byte{}
rand.Read(key[:])
return base64.StdEncoding.EncodeToString(key[:])
}