Use uuid.UUID everywhere and have postgres generate ids
This commit is contained in:
7
token.go
7
token.go
@@ -1,13 +1,16 @@
|
||||
package budgeteer
|
||||
|
||||
import "git.javil.eu/jacob1123/budgeteer/postgres"
|
||||
import (
|
||||
"git.javil.eu/jacob1123/budgeteer/postgres"
|
||||
"github.com/google/uuid"
|
||||
)
|
||||
|
||||
// Token contains data that authenticates a user
|
||||
type Token interface {
|
||||
GetUsername() string
|
||||
GetName() string
|
||||
GetExpiry() float64
|
||||
GetID() string
|
||||
GetID() uuid.UUID
|
||||
}
|
||||
|
||||
// TokenVerifier verifies a Token
|
||||
|
Reference in New Issue
Block a user