Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrTokenInvalid = errors.New("token is invalid")
)
Functions ¶
This section is empty.
Types ¶
type AuthService ¶
type AuthService struct {
// contains filtered or unexported fields
}
func NewAuthService ¶
func NewAuthService(db *gorm.DB) *AuthService
func (*AuthService) GetJWTToken ¶
func (as *AuthService) GetJWTToken(dto *dtos.LoginRequestDTO) (string, error)
func (*AuthService) RefreshJWTToken ¶
func (as *AuthService) RefreshJWTToken(token string) (string, error)
func (*AuthService) VerifyJWTToken ¶
func (as *AuthService) VerifyJWTToken(token string) error
Click to show internal directories.
Click to hide internal directories.