feat: add http handlers, docs
This commit is contained in:
@@ -21,6 +21,8 @@ import (
|
||||
type AuthService interface {
|
||||
GenerateChallenge(ctx context.Context, pubKey string) (*domain.Challenge, error)
|
||||
Authenticate(ctx context.Context, pubKey string, signature string, chainID uint, ipAddress, userAgent string) (*UserToken, error)
|
||||
SendOTPCode(ctx context.Context, phone string) (string, error)
|
||||
VerifyOTP(ctx context.Context, phone, code string) error
|
||||
}
|
||||
|
||||
type authService struct {
|
||||
|
||||
Reference in New Issue
Block a user