From b77920bb4b25ab7134de646e9175aaaa7bf121da Mon Sep 17 00:00:00 2001 From: binwiederhier Date: Sat, 28 Jan 2023 07:40:29 -0500 Subject: [PATCH] Fix linting errors --- user/manager.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/user/manager.go b/user/manager.go index 57f107a9..4114c794 100644 --- a/user/manager.go +++ b/user/manager.go @@ -406,6 +406,7 @@ func (a *Manager) CreateToken(userID, label string, expires time.Time) (*Token, }, nil } +// Tokens returns all existing tokens for the user with the given user ID func (a *Manager) Tokens(userID string) ([]*Token, error) { rows, err := a.db.Query(selectTokensQuery, userID) if err != nil { @@ -425,6 +426,7 @@ func (a *Manager) Tokens(userID string) ([]*Token, error) { return tokens, nil } +// Token returns a specific token for a user func (a *Manager) Token(userID, token string) (*Token, error) { rows, err := a.db.Query(selectTokenQuery, userID, token) if err != nil {