imports, comments and formatting
This commit is contained in:
4
token.go
4
token.go
@@ -5,7 +5,7 @@ import (
|
||||
"github.com/google/uuid"
|
||||
)
|
||||
|
||||
// Token contains data that authenticates a user
|
||||
// Token contains data that authenticates a user.
|
||||
type Token interface {
|
||||
GetUsername() string
|
||||
GetName() string
|
||||
@@ -13,7 +13,7 @@ type Token interface {
|
||||
GetID() uuid.UUID
|
||||
}
|
||||
|
||||
// TokenVerifier verifies a Token
|
||||
// TokenVerifier verifies a Token.
|
||||
type TokenVerifier interface {
|
||||
VerifyToken(string) (Token, error)
|
||||
CreateToken(*postgres.User) (string, error)
|
||||
|
Reference in New Issue
Block a user