Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JWTCustomClaims ¶
type JWTCustomClaims struct { Username string `json:"username"` jwt.RegisteredClaims }
JWTCustomClaims are custom claims extending default ones.
type UserAuthService ¶
type UserAuthService struct {
// contains filtered or unexported fields
}
func NewUserAuthService ¶
func NewUserAuthService(secret string) *UserAuthService
func (*UserAuthService) Login ¶
func (authService *UserAuthService) Login(c echo.Context) error
func (*UserAuthService) RestrictedPath ¶
func (authService *UserAuthService) RestrictedPath(c echo.Context) error
func (*UserAuthService) SignUp ¶
func (authService *UserAuthService) SignUp(c echo.Context) error
type UserRequest ¶
UserRequest represents a login or sign up request
Click to show internal directories.
Click to hide internal directories.