make Mailer an interface

This commit is contained in:
dhax 2025-03-05 15:42:02 +01:00
parent dd2412463b
commit 08c09ffee7
10 changed files with 234 additions and 227 deletions

View file

@ -9,9 +9,7 @@ import (
"github.com/spf13/viper"
)
var (
errTokenNotFound = errors.New("login token not found")
)
var errTokenNotFound = errors.New("login token not found")
// LoginToken is an in-memory saved token referencing an account ID and an expiry date.
type LoginToken struct {