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
Click to show internal directories.
Click to hide internal directories.