Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type PasetoToken ¶
type PasetoToken struct {
// contains filtered or unexported fields
}
*
- PasetoToken implements port.TokenService interface
- and provides an access to the paseto library
func (*PasetoToken) CreateToken ¶
func (pt *PasetoToken) CreateToken(user *domain.User) (string, error)
CreateToken creates a new paseto token
func (*PasetoToken) VerifyToken ¶
func (pt *PasetoToken) VerifyToken(token string) (*domain.TokenPayload, error)
VerifyToken verifies the paseto token
Click to show internal directories.
Click to hide internal directories.