auth

package
v0.0.0-...-c965c1a Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HashPassword

func HashPassword(password string) (string, error)

func IsPasswordValid

func IsPasswordValid(hash string, password string) bool

Types

type Handler

type Handler struct {
	CustomerRepo customer.Repository
}

func (Handler) Login

func (h Handler) Login(c echo.Context) error

func (Handler) Refresh

func (h Handler) Refresh(c echo.Context) error

func (Handler) Register

func (h Handler) Register(c echo.Context) error

type TokenPair

type TokenPair struct {
	AccessToken  string `json:"access_token"`
	RefreshToken string `json:"refresh_token"`
}

Jump to

Keyboard shortcuts

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