imports, comments and formatting

This commit is contained in:
2022-02-20 20:58:48 +00:00
parent 75a6ce1577
commit 91b8cc06b2
5 changed files with 39 additions and 40 deletions

View File

@@ -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)