diff --git a/api/account/logout.go b/api/account/logout.go index db6c6fb..aec856e 100644 --- a/api/account/logout.go +++ b/api/account/logout.go @@ -9,10 +9,6 @@ import ( // /account/logout - log out of account func Logout(token []byte) error { - if len(token) != TokenSize { - return fmt.Errorf("invalid token") - } - err := db.RemoveSessionFromToken(token) if err != nil { if err == sql.ErrNoRows {