Documentation ¶
Index ¶
- type Credentials
- type Service
- func (s *Service) Authenticator(next http.Handler) http.Handler
- func (s *Service) CreateAccessToken(userDB db.User) (*http.Cookie, error)
- func (s *Service) CreateRefreshToken() (*http.Cookie, error)
- func (s *Service) PublicRoutes(r chi.Router)
- func (s *Service) Verifier() func(http.Handler) http.Handler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Credentials ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func (*Service) Authenticator ¶
same as jwtauth.Authenticator but in json
func (*Service) CreateAccessToken ¶
func (*Service) PublicRoutes ¶
func (s *Service) PublicRoutes(r chi.Router)
Click to show internal directories.
Click to hide internal directories.