Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthService ¶
type AuthService struct {
// contains filtered or unexported fields
}
AuthService holds our auth struct
func NewAuthService ¶
func NewAuthService(config *context.Config) *AuthService
NewAuthService instantiates a new AuthService
func (*AuthService) SignJWT ¶
func (a *AuthService) SignJWT(customClaims *builder.CustomClaims) (string, error)
SignJWT signs a new jwt
func (*AuthService) ValidateJWT ¶
func (a *AuthService) ValidateJWT(tokenString string, customClaims *builder.CustomClaims) (*jwt.Token, error)
ValidateJWT validates a token string
Click to show internal directories.
Click to hide internal directories.