Add persistent session storage with SQLite
This commit is contained in:
parent
747d9fe3c7
commit
b7072a5865
10 changed files with 135 additions and 43 deletions
8
internal/models/auth.go
Normal file
8
internal/models/auth.go
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
package models
|
||||
|
||||
import "time"
|
||||
|
||||
type Token struct {
|
||||
User string
|
||||
Expiration time.Time
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue