fixed verification code

This commit is contained in:
Stephan D
2026-02-09 16:40:52 +01:00
parent f8a3bef2e6
commit eda6b75f74
78 changed files with 1118 additions and 487 deletions

View File

@@ -2,19 +2,12 @@ package verification
import (
"context"
"errors"
"time"
"github.com/tech/sendico/pkg/model"
"go.mongodb.org/mongo-driver/v2/bson"
)
var (
ErrTokenNotFound = errors.New("verification token not found")
ErrTokenAlreadyUsed = errors.New("verification token already used")
ErrTokenExpired = errors.New("verification token expired")
)
type DB interface {
// template.DB[*model.VerificationToken]
Create(