authentication

package
v0.0.0-...-5ce7601 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 16, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const UserIDValue = "userID"

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct {
	Logger       *zap.Logger
	UserService  user.Service
	TokenManager *token.Manager
}

func (*Service) AuthenticationInterceptor

func (s *Service) AuthenticationInterceptor(next http.Handler) http.Handler

func (*Service) ValidateToken

func (s *Service) ValidateToken(authToken string) (model.UserID, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址