added auth service to go backend

This commit is contained in:
2025-01-03 20:45:39 +00:00
parent 98fb6942fe
commit d0d88de15c
10 changed files with 297 additions and 9 deletions
@@ -0,0 +1,13 @@
package repository
import (
"context"
E "github.com/IBM/fp-go/either"
)
type AuthRepository interface {
GenerateToken(ctx context.Context) func(userID string) E.Either[error, string]
ValidateToken(ctx context.Context) func(userID string) E.Either[error, string]
RevokeToken(ctx context.Context) func(userID string) E.Either[error, string]
}