services

package
v0.0.0-...-a24b8d5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 21, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TokenExpirationTime = time.Hour * 24
)

Variables

View Source
var ErrRepository = errors.New("repository")
View Source
var FxModule = fx.Module("services",
	fx.Provide(
		NewLoginService,
	),
)

Functions

This section is empty.

Types

type LoginService

type LoginService struct {
	// contains filtered or unexported fields
}

func NewLoginService

func NewLoginService(cfg *config.Config, rc *redis.Client) *LoginService

func (*LoginService) IssueJWT

func (ls *LoginService) IssueJWT(address string, uuid string) (string, error)

func (*LoginService) VerifyWalletSignature

func (ls *LoginService) VerifyWalletSignature(walletAddress string, signature string, nonce string) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL