// WithJWTAuthUnaryInterceptor sets an interceprot for checking JWT token.
WithJWTAuthUnaryInterceptor sets an interceprot for checking JWT token.
// WithJWTAuthUnaryInterceptor sets an interceprot for checking JWT token .
func WithJWTAuthUnaryInterceptor(verifier jwt.Verifier, authorizer rpcauth.RBACAuthorizer, logger *zap.Logger) Option {
	return func(s *Server) {
		s.jwtAuthUnaryInterceptor = rpcauth.JWTUnaryServerInterceptor(verifier, authorizer, logger)
	}
}
func WithJWTAuthUnaryInterceptor ( verifier jwt . Verifier , authorizer rpcauth . RBACAuthorizer , logger * zap . Logger ) Option { return func ( s * Server ) { s . jwtAuthUnaryInterceptor = rpcauth . JWTUnaryServerInterceptor ( verifier , authorizer , logger ) } }
WithJWTAuthUnaryInterceptor sets an interceprot for checking JWT token.
WithJWTAuthUnaryInterceptor sets an interceprot for checking JWT token .