Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNoJwtFound = fmt.Errorf("could not find JWT in meta-context") ErrNotAuthenticated = fmt.Errorf("user is not authenticated") ErrJWTParse = fmt.Errorf("could not parse jwt token") ErrCorruptJWT = fmt.Errorf("jwt could not be parsed (JWT might be corrupted)") ErrExpiredJWT = fmt.Errorf("provided JWT has expired") )
Functions ¶
func WithJwtAuth ¶
func WithJwtAuth(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, handler grpc.UnaryHandler) (interface{}, error)
func WithUnary ¶
func WithUnary(middleware grpc.UnaryServerInterceptor) grpc.ServerOption
Types ¶
Click to show internal directories.
Click to hide internal directories.